Ensure views are inflated before trying to animate.
Bug: 153000670 Test: manual (flash, spam touches to the nav bar - before opening notification shade) Change-Id: Iaa4f1515a238fbd6978d263dd22ea4d9438170a6
This commit is contained in:
@@ -219,6 +219,9 @@ public class NotificationPanelViewController extends OverlayViewController {
|
||||
|
||||
mNavBarNotificationTouchListener =
|
||||
(v, event) -> {
|
||||
if (!isInflated()) {
|
||||
return true;
|
||||
}
|
||||
boolean consumed = navBarCloseNotificationGestureDetector.onTouchEvent(event);
|
||||
if (consumed) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user