mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
renaming some hidden item password protection related items
This commit is contained in:
parent
e63393cbd0
commit
ca85e8a3df
3 changed files with 8 additions and 8 deletions
|
@ -48,7 +48,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
|
||||||
implementation 'androidx.multidex:multidex:2.0.0'
|
implementation 'androidx.multidex:multidex:2.0.0'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SettingsActivity : SimpleActivity() {
|
||||||
setupScrollHorizontally()
|
setupScrollHorizontally()
|
||||||
setupScreenRotation()
|
setupScreenRotation()
|
||||||
setupHideSystemUI()
|
setupHideSystemUI()
|
||||||
setupPasswordProtection()
|
setupHiddenItemPasswordProtection()
|
||||||
setupAppPasswordProtection()
|
setupAppPasswordProtection()
|
||||||
setupDeleteEmptyFolders()
|
setupDeleteEmptyFolders()
|
||||||
setupAllowPhotoGestures()
|
setupAllowPhotoGestures()
|
||||||
|
@ -235,14 +235,14 @@ class SettingsActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupPasswordProtection() {
|
private fun setupHiddenItemPasswordProtection() {
|
||||||
settings_password_protection.isChecked = config.isPasswordProtectionOn
|
settings_hidden_item_password_protection.isChecked = config.isPasswordProtectionOn
|
||||||
settings_password_protection_holder.setOnClickListener {
|
settings_hidden_item_password_protection_holder.setOnClickListener {
|
||||||
val tabToShow = if (config.isPasswordProtectionOn) config.protectionType else SHOW_ALL_TABS
|
val tabToShow = if (config.isPasswordProtectionOn) config.protectionType else SHOW_ALL_TABS
|
||||||
SecurityDialog(this, config.passwordHash, tabToShow) { hash, type, success ->
|
SecurityDialog(this, config.passwordHash, tabToShow) { hash, type, success ->
|
||||||
if (success) {
|
if (success) {
|
||||||
val hasPasswordProtection = config.isPasswordProtectionOn
|
val hasPasswordProtection = config.isPasswordProtectionOn
|
||||||
settings_password_protection.isChecked = !hasPasswordProtection
|
settings_hidden_item_password_protection.isChecked = !hasPasswordProtection
|
||||||
config.isPasswordProtectionOn = !hasPasswordProtection
|
config.isPasswordProtectionOn = !hasPasswordProtection
|
||||||
config.passwordHash = if (hasPasswordProtection) "" else hash
|
config.passwordHash = if (hasPasswordProtection) "" else hash
|
||||||
config.protectionType = type
|
config.protectionType = type
|
||||||
|
|
|
@ -898,7 +898,7 @@
|
||||||
android:textSize="@dimen/smaller_text_size"/>
|
android:textSize="@dimen/smaller_text_size"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/settings_password_protection_holder"
|
android:id="@+id/settings_hidden_item_password_protection_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
|
@ -909,7 +909,7 @@
|
||||||
android:paddingBottom="@dimen/activity_margin">
|
android:paddingBottom="@dimen/activity_margin">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MySwitchCompat
|
<com.simplemobiletools.commons.views.MySwitchCompat
|
||||||
android:id="@+id/settings_password_protection"
|
android:id="@+id/settings_hidden_item_password_protection"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
|
|
Loading…
Reference in a new issue