From 1d13a1fbd6580c0d28c90579ade96e0a93e17c92 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Mon, 2 Nov 2020 20:25:37 +0100 Subject: Improve Autofill UI and enable inline presentations (#1181) * Improve Autofill UI and enable inline presentations Improves the Autofill UI in the following ways: * Add support for Android 11 inline presentations of Autofill datasets. * Instead of showing the identifier (app name or web origin) of the current app on top of every Autofill dataset, it is now shown 1) as a header dataset on Android 9 and 10 as well as 2) at the top of the search activity on all supported versions of Android. Rationale: The identifier is only used in trust decisions when choosing an existing entry to fill and should feature prominently in that view, not elsewhere. * Show the actual identifier part of a matched entry's path, which may differ from the identifier of the matched app/website. * Slightly tweak the labels of Search/Generate Autofill actions to indicate that a) this is about entries and b) the user may skip the generation of a password and supply a custom one as well. * Suppress lint error * Address review comments * Add a fixme about properly handling fill-in datasets * CHANGELOG: add entry for inline presentation Signed-off-by: Harsh Shandilya * Remove unused parameter Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- .../main/res/layout/activity_oreo_autofill_filter.xml | 18 +++++++++++++++--- app/src/main/res/layout/oreo_autofill_dataset.xml | 7 +++++-- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_oreo_autofill_filter.xml b/app/src/main/res/layout/activity_oreo_autofill_filter.xml index a3718b43..8e671e30 100644 --- a/app/src/main/res/layout/activity_oreo_autofill_filter.xml +++ b/app/src/main/res/layout/activity_oreo_autofill_filter.xml @@ -14,16 +14,28 @@ + + + app:layout_constraintTop_toBottomOf="@id/origin">