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
This commit is contained in:
Ahaan Ugale
2021-07-01 22:47:34 -07:00
parent d4ce558f33
commit 30a3e3c3ed
2 changed files with 5 additions and 2 deletions

View File

@@ -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<Integer> passwordCount = new MutableLiveData<>();
passwordCount.observe(