Set stealth mode during inflation

Test: manual
Change-Id: If321158a788ac46fc20f8bfbb67bcbfb154c6018
Fixes: 112526923
(cherry picked from commit e173274e78)
This commit is contained in:
Lucas Dupin
2018-08-23 18:26:49 -07:00
parent e1b0d4a253
commit 01584839c4

View File

@@ -144,6 +144,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());