Set the 'Automatically close BiTSy after 3 minutes of inactivity' feature on by default.

This commit is contained in:
Severiano Jaramillo 2018-12-20 14:17:50 -06:00
parent 96fc421a99
commit fddfe1ab8b
2 changed files with 2 additions and 2 deletions

View file

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

View file

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