mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-01 21:47:50 +02:00
Revert "Add shortcut to change app language in Android 13"
This reverts commit 538478cac8
.
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user