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:
Heemin Seog
2020-04-01 18:06:24 -07:00
parent 50e0244012
commit 50647bf201

View File

@@ -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;