|
|
@ -347,18 +347,10 @@ class Settings(private val appContext: Context) : PreferencesHolder {
|
|
|
|
default = false
|
|
|
|
default = false
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
val isFirstRun: Boolean =
|
|
|
|
val isFirstRun: Boolean by booleanPreference(
|
|
|
|
if (!preferences.contains(appContext.getPreferenceKey(R.string.pref_key_is_first_run))) {
|
|
|
|
|
|
|
|
preferences.edit()
|
|
|
|
|
|
|
|
.putBoolean(
|
|
|
|
|
|
|
|
appContext.getPreferenceKey(R.string.pref_key_is_first_run),
|
|
|
|
appContext.getPreferenceKey(R.string.pref_key_is_first_run),
|
|
|
|
false
|
|
|
|
default = true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.apply()
|
|
|
|
|
|
|
|
true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Indicates the last time when the user was interacting with the [BrowserFragment],
|
|
|
|
* Indicates the last time when the user was interacting with the [BrowserFragment],
|
|
|
|