From 2f353f54465c0c49c32c265ef03fcce86159c24c Mon Sep 17 00:00:00 2001 From: ZetaTom <70907959+ZetaTom@users.noreply.github.com> Date: Tue, 10 Oct 2023 11:20:14 +0200 Subject: [PATCH] Extended AccountRemovalDialog - list item is now clickable as a whole - commented out includeBuild in settings.gradle Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com> --- .../android/ui/dialog/AccountRemovalDialog.kt | 4 ++-- .../main/res/layout/account_removal_dialog.xml | 17 ++++++++++++----- settings.gradle | 10 +++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/ui/dialog/AccountRemovalDialog.kt b/app/src/main/java/com/owncloud/android/ui/dialog/AccountRemovalDialog.kt index d556f74eb756..37dde4260239 100644 --- a/app/src/main/java/com/owncloud/android/ui/dialog/AccountRemovalDialog.kt +++ b/app/src/main/java/com/owncloud/android/ui/dialog/AccountRemovalDialog.kt @@ -97,10 +97,10 @@ class AccountRemovalDialog : DialogFragment(), AvatarGenerationListener, Injecta .setPositiveButton(R.string.delete_account) { _, _ -> removeAccount() } // allow selection by clicking on list element - binding.localRemoveText.setOnClickListener { + binding.localRemove.setOnClickListener { binding.radioLocalRemove.performClick() } - binding.requestDeletionText.setOnClickListener { + binding.requestDeletion.setOnClickListener { binding.radioRequestDeletion.performClick() } diff --git a/app/src/main/res/layout/account_removal_dialog.xml b/app/src/main/res/layout/account_removal_dialog.xml index c034435d7dd7..913d19cbdff4 100644 --- a/app/src/main/res/layout/account_removal_dialog.xml +++ b/app/src/main/res/layout/account_removal_dialog.xml @@ -23,15 +23,15 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" - android:paddingHorizontal="24dp"> + android:orientation="vertical"> + android:padding="12dp" + android:paddingHorizontal="24dp"> @@ -108,8 +112,12 @@ android:id="@+id/request_deletion" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="?attr/selectableItemBackground" + android:clickable="true" + android:focusable="true" android:gravity="center_vertical" android:orientation="horizontal" + android:paddingHorizontal="24dp" android:paddingVertical="8dp" android:visibility="gone" tools:visibility="visible"> @@ -120,7 +128,6 @@ android:layout_height="wrap_content" /> diff --git a/settings.gradle b/settings.gradle index ac171b92b54b..5c2438e2ad80 100644 --- a/settings.gradle +++ b/settings.gradle @@ -9,8 +9,8 @@ include ':appscan' // } //} -includeBuild('../android-library') { - dependencySubstitution { - substitute module('com.github.nextcloud:android-library') using project(':library') - } -} \ No newline at end of file +//includeBuild('../android-library') { +// dependencySubstitution { +// substitute module('com.github.nextcloud:android-library') using project(':library') +// } +//}