Set the 'Automatically close BiTSy after 3 minutes of inactivity' feature on by default.
This commit is contained in:
parent
96fc421a99
commit
fddfe1ab8b
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class MainActivity : ConnectedActivity() {
|
|||
// closes the app, if not then it just restarts the Handler (timer)
|
||||
mRunnable = Runnable {
|
||||
if (PreferenceManager.getDefaultSharedPreferences(this)
|
||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, false))
|
||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, true))
|
||||
finish()
|
||||
else
|
||||
restartHandler()
|
||||
|
|
|
@ -52,7 +52,7 @@ class SettingsFragment : Fragment() {
|
|||
*/
|
||||
private fun initAutoCloseSwitch() {
|
||||
val autoCloseOn = PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, false)
|
||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, true)
|
||||
|
||||
switchAutoClose.isChecked = autoCloseOn
|
||||
|
||||
|
|
Loading…
Reference in a new issue