AOD: Prevent KeyguardAffordanceViews from triggering in doze
Fixes a bug where the the affordances on the keyguard could be triggered on Ambient Display even though they were invisible. Fixes: 34707183 Test: Enter Ambient Display, drag from bottom right corner. Nothing should happen. Change-Id: I2deab6d006b645670038d7f658fb0361618b3a91
This commit is contained in:
@@ -762,7 +762,8 @@ public class NotificationPanelView extends PanelView implements
|
||||
}
|
||||
if ((!mIsExpanding || mHintAnimationRunning)
|
||||
&& !mQsExpanded
|
||||
&& mStatusBar.getBarState() != StatusBarState.SHADE) {
|
||||
&& mStatusBar.getBarState() != StatusBarState.SHADE
|
||||
&& !mDozing) {
|
||||
mAffordanceHelper.onTouchEvent(event);
|
||||
}
|
||||
if (mOnlyAffordanceInThisMotion) {
|
||||
|
||||
Reference in New Issue
Block a user