fix: auto offline default true
This commit is contained in:
parent
dedb99b73d
commit
e122ef303e
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
app:title="@string/settings_socket_timeout"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
app:key="pref_auto_offline"
|
||||
app:title="@string/turn_on_offline_mode_automatically" />
|
||||
</PreferenceScreen>
|
|
@ -32,7 +32,7 @@ constructor(
|
|||
}
|
||||
|
||||
var autoOffline
|
||||
get() = sharedPreferences.getBoolean(Constants.PREF_AUTO_OFFLINE, false)
|
||||
get() = sharedPreferences.getBoolean(Constants.PREF_AUTO_OFFLINE, true)
|
||||
set(value) {
|
||||
sharedPreferences.edit {
|
||||
putBoolean(Constants.PREF_AUTO_OFFLINE, value)
|
||||
|
|
Loading…
Reference in a new issue