Revert "Add shortcut to change app language in Android 13"

This reverts commit 538478cac8.
This commit is contained in:
arkon 2022-03-12 16:45:36 -05:00
parent 538478cac8
commit 1613d561c1
4 changed files with 10 additions and 18 deletions

View file

@ -17,13 +17,13 @@ shortcutHelper.setFilePath("./shortcuts.xml")
val SUPPORTED_ABIS = setOf("armeabi-v7a", "arm64-v8a", "x86")
android {
compileSdkPreview = "Tiramisu"
ndkVersion = "22.1.7171670"
compileSdk = AndroidConfig.compileSdk
ndkVersion = AndroidConfig.ndk
defaultConfig {
applicationId = "eu.kanade.tachiyomi"
minSdk = 23
targetSdk = 29
minSdk = AndroidConfig.minSdk
targetSdk = AndroidConfig.targetSdk
versionCode = 76
versionName = "0.13.1"

View file

@ -3,7 +3,6 @@ package eu.kanade.tachiyomi.ui.setting
import android.content.Intent
import android.os.Build
import android.provider.Settings
import androidx.core.net.toUri
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.preference.bindTo
@ -55,17 +54,5 @@ class SettingsGeneralController : SettingsController() {
}
}
}
if (Build.VERSION.CODENAME == "Tiramisu") {
preference {
key = "pref_manage_language"
titleRes = R.string.pref_app_language
onClick {
val intent = Intent(Settings.ACTION_APP_LOCALE_SETTINGS).apply {
data = "package:${context.packageName}".toUri()
}
startActivity(intent)
}
}
}
}
}

View file

@ -178,7 +178,6 @@
<string name="pref_start_screen">Start screen</string>
<string name="pref_confirm_exit">Confirm exit</string>
<string name="pref_manage_notifications">Manage notifications</string>
<string name="pref_app_language">App language</string>
<string name="pref_category_security">Security</string>
<string name="lock_with_biometrics">Require unlock</string>

View file

@ -0,0 +1,6 @@
object AndroidConfig {
const val compileSdk = 31
const val minSdk = 23
const val targetSdk = 29
const val ndk = "22.1.7171670"
}