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

master
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