fix: auto offline default true

This commit is contained in:
nomadics9 2024-07-08 18:43:45 +03:00
parent dedb99b73d
commit e122ef303e
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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)