|
@@ -196,7 +196,7 @@ class SettingsAdvancedController : SettingsController() {
|
|
summary = "%s"
|
|
summary = "%s"
|
|
entriesRes = arrayOf(R.string.lock_always, R.string.landscape, R.string.lock_never)
|
|
entriesRes = arrayOf(R.string.lock_always, R.string.landscape, R.string.lock_never)
|
|
entryValues = PreferenceValues.TabletUiMode.values().map { it.name }.toTypedArray()
|
|
entryValues = PreferenceValues.TabletUiMode.values().map { it.name }.toTypedArray()
|
|
- defaultValue = if (activity!!.applicationContext.isTablet()) {
|
|
|
|
|
|
+ defaultValue = if (context.isTablet()) {
|
|
PreferenceValues.TabletUiMode.ALWAYS
|
|
PreferenceValues.TabletUiMode.ALWAYS
|
|
} else {
|
|
} else {
|
|
PreferenceValues.TabletUiMode.NEVER
|
|
PreferenceValues.TabletUiMode.NEVER
|