From 30a3e3c3ede9f90e97906bc13d5015bb6fa42109 Mon Sep 17 00:00:00 2001 From: Ahaan Ugale Date: Thu, 1 Jul 2021 22:47:34 -0700 Subject: [PATCH] Password settings: use EM DASH as the pwd count placeholder The current blank space in the UI looks like a bug if the password manager doesn't return a result. (though this should rarely happen) Fix: 192531856 Test: manual Change-Id: Ia1765e51f1d4e5080c9a8419c8e81c2771caba7b --- res/values/strings.xml | 3 +++ .../applications/autofill/PasswordsPreferenceController.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index f837d6bcc6d..6e1bd083b34 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -12140,6 +12140,9 @@ %1$d password %1$d passwords + + \u2014 auto, fill, autofill, password diff --git a/src/com/android/settings/applications/autofill/PasswordsPreferenceController.java b/src/com/android/settings/applications/autofill/PasswordsPreferenceController.java index 2dbe9f00797..1d67fb7539d 100644 --- a/src/com/android/settings/applications/autofill/PasswordsPreferenceController.java +++ b/src/com/android/settings/applications/autofill/PasswordsPreferenceController.java @@ -137,8 +137,8 @@ public class PasswordsPreferenceController extends BasePreferenceController prefContext.startActivityAsUser(intent, UserHandle.of(user)); return true; }); - // Set an empty summary to avoid a UI flicker when the value loads. - pref.setSummary(R.string.summary_placeholder); + // Set a placeholder summary to avoid a UI flicker when the value loads. + pref.setSummary(R.string.autofill_passwords_count_placeholder); final MutableLiveData passwordCount = new MutableLiveData<>(); passwordCount.observe(