From ca85e8a3dfe85cadad64bd058c773c5c44d77b23 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 30 Oct 2018 22:20:07 +0100 Subject: [PATCH] renaming some hidden item password protection related items --- app/build.gradle | 2 +- .../gallery/activities/SettingsActivity.kt | 10 +++++----- app/src/main/res/layout/activity_settings.xml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7db11603b..664509f03 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -48,7 +48,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.2.14' + implementation 'com.simplemobiletools:commons:5.2.15' implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0' implementation 'androidx.multidex:multidex:2.0.0' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index f58789dd1..502975d2d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -53,7 +53,7 @@ class SettingsActivity : SimpleActivity() { setupScrollHorizontally() setupScreenRotation() setupHideSystemUI() - setupPasswordProtection() + setupHiddenItemPasswordProtection() setupAppPasswordProtection() setupDeleteEmptyFolders() setupAllowPhotoGestures() @@ -235,14 +235,14 @@ class SettingsActivity : SimpleActivity() { } } - private fun setupPasswordProtection() { - settings_password_protection.isChecked = config.isPasswordProtectionOn - settings_password_protection_holder.setOnClickListener { + private fun setupHiddenItemPasswordProtection() { + settings_hidden_item_password_protection.isChecked = config.isPasswordProtectionOn + settings_hidden_item_password_protection_holder.setOnClickListener { val tabToShow = if (config.isPasswordProtectionOn) config.protectionType else SHOW_ALL_TABS SecurityDialog(this, config.passwordHash, tabToShow) { hash, type, success -> if (success) { val hasPasswordProtection = config.isPasswordProtectionOn - settings_password_protection.isChecked = !hasPasswordProtection + settings_hidden_item_password_protection.isChecked = !hasPasswordProtection config.isPasswordProtectionOn = !hasPasswordProtection config.passwordHash = if (hasPasswordProtection) "" else hash config.protectionType = type diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 27fd9bd44..f2271780d 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -898,7 +898,7 @@ android:textSize="@dimen/smaller_text_size"/>