diff --git a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesUi.kt b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesUi.kt index 3f31c2d2f..cfb7b0e96 100644 --- a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesUi.kt +++ b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesUi.kt @@ -36,7 +36,6 @@ import androidx.preference.TwoStatePreference import org.videolan.medialibrary.Tools import org.videolan.medialibrary.interfaces.Medialibrary import org.videolan.resources.AndroidDevices -import org.videolan.resources.AppContextProvider import org.videolan.tools.KEY_APP_THEME import org.videolan.tools.KEY_ARTISTS_SHOW_ALL import org.videolan.tools.KEY_BLACK_THEME @@ -158,7 +157,7 @@ class PreferencesUi : BasePreferenceFragment(), SharedPreferences.OnSharedPrefer UiTools.restartDialog(requireActivity()) } KEY_APP_THEME -> { - if (!AppContextProvider.locale.isNullOrEmpty()) UiTools.restartDialog(requireActivity()) else (activity as PreferencesActivity).exitAndRescan() + UiTools.restartDialog(requireActivity()) } LIST_TITLE_ELLIPSIZE -> { Settings.listTitleEllipsize = sharedPreferences.getString(LIST_TITLE_ELLIPSIZE, "0")?.toInt() ?: 0