renaming a delete confirmation skipping related view

This commit is contained in:
tibbi 2021-06-13 22:10:35 +02:00
parent 59d6749ce6
commit 3d31290c6b
2 changed files with 6 additions and 6 deletions

View File

@ -208,10 +208,10 @@ class SettingsActivity : SimpleActivity() {
}
private fun setupDeleteConfirmation() {
settings_delete_confirmation.isChecked = config.skipDeleteConfirmation
settings_delete_confirmation_holder.setOnClickListener {
settings_delete_confirmation.toggle()
config.skipDeleteConfirmation = settings_delete_confirmation.isChecked
settings_skip_delete_confirmation.isChecked = config.skipDeleteConfirmation
settings_skip_delete_confirmation_holder.setOnClickListener {
settings_skip_delete_confirmation.toggle()
config.skipDeleteConfirmation = settings_skip_delete_confirmation.isChecked
}
}

View File

@ -240,7 +240,7 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_delete_confirmation_holder"
android:id="@+id/settings_skip_delete_confirmation_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/medium_margin"
@ -251,7 +251,7 @@
android:paddingBottom="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MySwitchCompat
android:id="@+id/settings_delete_confirmation"
android:id="@+id/settings_skip_delete_confirmation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"