Fix double tapping notifications on lock screen.

http://ag/10273995 broke double tapping on notifications. This cl
restores the behavior by replacing a call to
ActivatableNotificationView#performClick with
ExpandableOutlineView#performClick.

That is to say, we needed to call the super method, as we did before
the breaking cl was checked in.

Bug: 149744457
Test: atest SystemUITests
Change-Id: Ie77ade20f74b04eb0edbe0f1806938523068175a
This commit is contained in:
Dave Mankoff
2020-02-18 14:06:46 -05:00
parent 4daaa833de
commit 20de6bde28
2 changed files with 6 additions and 1 deletions

View File

@@ -336,6 +336,10 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
return false;
}
boolean superPerformClick() {
return super.performClick();
}
/**
* Cancels the hotspot and makes the notification inactive.
*/

View File

@@ -72,7 +72,8 @@ public class ActivatableNotificationViewController {
} else {
mView.makeInactive(true /* animate */);
}
}, mView::performClick, mView::handleSlideBack, mFalsingManager::onNotificationDoubleTap);
}, mView::superPerformClick, mView::handleSlideBack,
mFalsingManager::onNotificationDoubleTap);
mView.setOnTouchListener(mTouchHandler);
mView.setTouchHandler(mTouchHandler);
mView.setOnDimmedListener(dimmed -> {