Fix crash in settings search (fixes #5855)
(cherry picked from commit 7878053df2e7c431f7d7a61b418567e4891bf87f)
This commit is contained in:
parent
336727e01a
commit
6eac0f6f98
@ -210,7 +210,7 @@ class SettingsAdvancedController : SettingsController() {
|
||||
summary = "%s"
|
||||
entriesRes = arrayOf(R.string.lock_always, R.string.landscape, R.string.lock_never)
|
||||
entryValues = PreferenceValues.TabletUiMode.values().map { it.name }.toTypedArray()
|
||||
defaultValue = if (activity!!.applicationContext.isTablet()) {
|
||||
defaultValue = if (context.isTablet()) {
|
||||
PreferenceValues.TabletUiMode.ALWAYS
|
||||
} else {
|
||||
PreferenceValues.TabletUiMode.NEVER
|
||||
|
Loading…
x
Reference in New Issue
Block a user