From 15042687f89645d1fac99f811abbb258482ec386 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 6 Oct 2020 11:29:23 +0530 Subject: Fix Autofill publisher changed layout (#1136) * Fix Autofill publisher changed layout Signed-off-by: Harsh Shandilya * Tweak autofill publisher UI Signed-off-by: Aditya Wasan Co-authored-by: Aditya Wasan --- CHANGELOG.md | 1 + .../oreo/ui/AutofillPublisherChangedActivity.kt | 2 +- .../activity_oreo_autofill_publisher_changed.xml | 104 +++++++++++---------- 3 files changed, 59 insertions(+), 48 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a5a6eab..23625b13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - Some classes of errors would be swallowed by an unhelpful 'Invalid remote: origin' message - Repositories created within APS would contain invalid `.gpg-id` files with no ability to fix them from the app +- Button labels were invisible in Autofill phishing warning screen ### Added diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillPublisherChangedActivity.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillPublisherChangedActivity.kt index 44ed3446..205452c4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillPublisherChangedActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillPublisherChangedActivity.kt @@ -66,7 +66,7 @@ class AutofillPublisherChangedActivity : AppCompatActivity() { with(binding) { okButton.setOnClickListener { finish() } advancedButton.setOnClickListener { - advancedButton.visibility = View.INVISIBLE + advancedButton.visibility = View.GONE warningAppAdvancedInfo.visibility = View.VISIBLE resetButton.visibility = View.VISIBLE } diff --git a/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml b/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml index 92d4e094..8a735e5b 100644 --- a/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml +++ b/app/src/main/res/layout/activity_oreo_autofill_publisher_changed.xml @@ -6,57 +6,69 @@ + app:layout_constraintTop_toTopOf="parent" /> + + + app:layout_constraintBottom_toBottomOf="@id/warningHeader" /> + app:layout_constraintStart_toEndOf="@id/warningSign" + app:layout_constraintTop_toBottomOf="@id/cover" /> -