From aa1ba0d95080130f1768e8800df50b26ca826431 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 26 Feb 2021 15:22:00 -0300 Subject: [PATCH] Turn 'Learn more' link into a button to have a larger tap area and a selectable background --- .../ConversationSettingsDialog.java | 4 ++-- .../layout/fragment_conversation_settings.xml | 20 +++++++++---------- .../res/layout/fragment_onboarding_full.xml | 2 +- briar-android/src/main/res/values/strings.xml | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/briar-android/src/main/java/org/briarproject/briar/android/conversation/ConversationSettingsDialog.java b/briar-android/src/main/java/org/briarproject/briar/android/conversation/ConversationSettingsDialog.java index 0b2efcaa8..4806a4e7a 100644 --- a/briar-android/src/main/java/org/briarproject/briar/android/conversation/ConversationSettingsDialog.java +++ b/briar-android/src/main/java/org/briarproject/briar/android/conversation/ConversationSettingsDialog.java @@ -5,7 +5,7 @@ import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.TextView; +import android.widget.Button; import org.briarproject.bramble.api.contact.ContactId; import org.briarproject.bramble.api.nullsafety.MethodsNotNullByDefault; @@ -96,7 +96,7 @@ public class ConversationSettingsDialog extends DialogFragment { switchDisappearingMessages.setOnCheckedChangeListener( (button, value) -> viewModel.setAutoDeleteTimerEnabled(value)); - TextView buttonLearnMore = + Button buttonLearnMore = view.findViewById(R.id.buttonLearnMore); buttonLearnMore.setOnClickListener(e -> showLearnMoreDialog()); diff --git a/briar-android/src/main/res/layout/fragment_conversation_settings.xml b/briar-android/src/main/res/layout/fragment_conversation_settings.xml index c363d9b09..698840626 100644 --- a/briar-android/src/main/res/layout/fragment_conversation_settings.xml +++ b/briar-android/src/main/res/layout/fragment_conversation_settings.xml @@ -19,7 +19,6 @@ + app:layout_constraintTop_toBottomOf="@+id/imageViewBomb" + tools:enabled="true" /> - @@ -68,4 +68,4 @@ - \ No newline at end of file + diff --git a/briar-android/src/main/res/layout/fragment_onboarding_full.xml b/briar-android/src/main/res/layout/fragment_onboarding_full.xml index 235df95b7..82ae00f69 100644 --- a/briar-android/src/main/res/layout/fragment_onboarding_full.xml +++ b/briar-android/src/main/res/layout/fragment_onboarding_full.xml @@ -46,7 +46,7 @@ android:layout_height="wrap_content" android:layout_margin="16dp" android:textColor="@color/briar_text_secondary_inverse" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@+id/button" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/imageView" diff --git a/briar-android/src/main/res/values/strings.xml b/briar-android/src/main/res/values/strings.xml index 512be84be..eb2c8296f 100644 --- a/briar-android/src/main/res/values/strings.xml +++ b/briar-android/src/main/res/values/strings.xml @@ -582,8 +582,8 @@ Disappearing messages Turning on this setting will make new messages in this conversation automatically disappear after 7\u00A0days. - \n\nThe countdown for the sender\'s copy of the message starts after it has been delivered, - while it starts for the recipient after they have read the message. + \n\nThe countdown for the sender\'s copy of the message starts after it has been delivered. + The countdown starts for the recipient after they have read the message. \n\nMessages that will disappear are marked with a bomb icon. \n\nKeep in mind that recipients can still make copies of the messages you send. \n\nIf you change this setting, it will apply to your new messages immediately and to your