Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e173274e authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Set stealth mode during inflation

Test: manual
Change-Id: If321158a788ac46fc20f8bfbb67bcbfb154c6018
Fixes: 112526923
parent 880b41cb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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());