forked from upstream-mirrors/OpenTracks
Settings: language chooser can be used from Android 14/SDK34.
Part of #1974.
This commit is contained in:
@@ -42,7 +42,7 @@ public class LocalePreference extends ListPreference {
|
|||||||
|
|
||||||
private void init(Context context) {
|
private void init(Context context) {
|
||||||
setPersistent(false);
|
setPersistent(false);
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
setEnabled(false);
|
setEnabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user