diff options
author | Lucas Dupin <dupin@google.com> | 2018-08-23 18:26:49 -0700 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2018-08-23 18:26:49 -0700 |
commit | e173274e78574001a60b528dc97c8b4e88691357 (patch) | |
tree | bbeb1161f788e952d723829e90fb9b3def84aff5 /packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | |
parent | 880b41cb009bce63e4fd4db1cb5070a5900ab87f (diff) |
Set stealth mode during inflation
Test: manual
Change-Id: If321158a788ac46fc20f8bfbb67bcbfb154c6018
Fixes: 112526923
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java index 9bf781678962..5ffdc7b221f3 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java @@ -145,6 +145,8 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit mLockPatternView = findViewById(R.id.lockPatternView); mLockPatternView.setSaveEnabled(false); mLockPatternView.setOnPatternListener(new UnlockPatternListener()); + mLockPatternView.setInStealthMode(!mLockPatternUtils.isVisiblePatternEnabled( + KeyguardUpdateMonitor.getCurrentUser())); // vibrate mode will be the same for the life of this screen mLockPatternView.setTactileFeedbackEnabled(mLockPatternUtils.isTactileFeedbackEnabled()); |