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)
|
// closes the app, if not then it just restarts the Handler (timer)
|
||||||
mRunnable = Runnable {
|
mRunnable = Runnable {
|
||||||
if (PreferenceManager.getDefaultSharedPreferences(this)
|
if (PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, false))
|
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, true))
|
||||||
finish()
|
finish()
|
||||||
else
|
else
|
||||||
restartHandler()
|
restartHandler()
|
||||||
|
|
|
@ -52,7 +52,7 @@ class SettingsFragment : Fragment() {
|
||||||
*/
|
*/
|
||||||
private fun initAutoCloseSwitch() {
|
private fun initAutoCloseSwitch() {
|
||||||
val autoCloseOn = PreferenceManager.getDefaultSharedPreferences(context)
|
val autoCloseOn = PreferenceManager.getDefaultSharedPreferences(context)
|
||||||
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, false)
|
.getBoolean(Constants.KEY_AUTO_CLOSE_ACTIVATED, true)
|
||||||
|
|
||||||
switchAutoClose.isChecked = autoCloseOn
|
switchAutoClose.isChecked = autoCloseOn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue