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:
Adrian Roos
2017-01-25 14:48:26 -08:00
parent e31f30e946
commit 2a31841e3d

View File

@@ -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) {