diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/SettingsActivity.kt index ff692f1f..e13c8a29 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/SettingsActivity.kt @@ -119,21 +119,11 @@ class SettingsActivity : SimpleActivity() { private fun setupPressBackTwice() { settings_press_back_twice.isChecked = config.pressBackTwice settings_press_back_twice_holder.setOnClickListener { - if (config.pressBackTwice) { - togglePressBackTwice() - } else { - handleHiddenFolderPasswordProtection { - togglePressBackTwice() - } - } + settings_press_back_twice.toggle() + config.pressBackTwice = settings_press_back_twice.isChecked } } - private fun togglePressBackTwice() { - settings_press_back_twice.toggle() - config.pressBackTwice = settings_press_back_twice.isChecked - } - private fun setupHiddenItemPasswordProtection() { settings_password_protection.isChecked = config.isHiddenPasswordProtectionOn settings_password_protection_holder.setOnClickListener {