Misc fixes for settings

- Set device credential's Window flag to be SECURE. This prevents
  showing any pattern/pin in recent list.
- Disable tap sound on entity header

Fixes: 64339515
Fixes: 64413598
Test: visual
Test: runtest --path \
      tests/app/src/com/android/settings/password/ChooseLockGenericTest.java
This commit is contained in:
Fan Zhang
2017-08-07 17:29:18 -07:00
parent f1398725a8
commit 6d479d99a9
3 changed files with 14 additions and 5 deletions

View File

@@ -215,6 +215,7 @@ public class EntityHeaderController {
final LayoutPreference pref = new LayoutPreference(uiContext, done(activity));
// Makes sure it's the first preference onscreen.
pref.setOrder(-1000);
pref.setSelectable(false);
pref.setKey(PREF_KEY_APP_HEADER);
return pref;
}