File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
packages/SystemUI/src/com/android/systemui/statusbar Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -953,4 +953,9 @@ protected boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn)
953953 }
954954 return false ;
955955 }
956+
957+ public boolean inKeyguardRestrictedInputMode () {
958+ KeyguardManager km = (KeyguardManager ) mContext .getSystemService (Context .KEYGUARD_SERVICE );
959+ return km .inKeyguardRestrictedInputMode ();
960+ }
956961}
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ public void setBar(BaseStatusBar phoneStatusBar) {
4848 }
4949
5050 public boolean onInterceptTouchEvent (MotionEvent event ) {
51- if (mSourceView == null || mDelegateView == null || mBar .shouldDisableNavbarGestures ()) {
51+ if (mSourceView == null || mDelegateView == null
52+ || mBar .shouldDisableNavbarGestures () || mBar .inKeyguardRestrictedInputMode ()) {
5253 return false ;
5354 }
5455
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ public void run() {
616616 public boolean onTouch (View v , MotionEvent event ) {
617617 switch (event .getAction ()) {
618618 case MotionEvent .ACTION_DOWN :
619- if (!shouldDisableNavbarGestures ()) {
619+ if (!shouldDisableNavbarGestures () && ! inKeyguardRestrictedInputMode () ) {
620620 mHandler .removeCallbacks (mShowSearchPanel );
621621 mHandler .postDelayed (mShowSearchPanel , mShowSearchHoldoff );
622622 }
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ public void run() {
201201 public boolean onTouch (View v , MotionEvent event ) {
202202 switch (event .getAction ()) {
203203 case MotionEvent .ACTION_DOWN :
204- if (!shouldDisableNavbarGestures ()) {
204+ if (!shouldDisableNavbarGestures () && ! inKeyguardRestrictedInputMode () ) {
205205 mHandler .removeCallbacks (mShowSearchPanel );
206206 mHandler .postDelayed (mShowSearchPanel , mShowSearchHoldoff );
207207 }
You can’t perform that action at this time.
0 commit comments