Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04cdf3a7 authored by Alex Stetson's avatar Alex Stetson
Browse files

DO NOT MERGE Inflate NotificationPanel on instantiation

If the NotificationPanel is not inflated, the proper listeners are not
setup and certain behavior will be broken until the panel is opened for
the first time.

Bug: 182531816
Test: manual
Change-Id: If55156b963c0a83ff644524dea0106708f1635cc
parent ed260d83
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -166,6 +166,10 @@ public class NotificationPanelViewController extends OverlayPanelViewController
        mEnableHeadsUpNotificationWhenNotificationShadeOpen = mResources.getBoolean(
                com.android.car.notification.R.bool
                        .config_enableHeadsUpNotificationWhenNotificationShadeOpen);

        // Inflate view on instantiation to properly initialize listeners even if panel has
        // not been opened.
        getOverlayViewGlobalStateController().inflateView(this);
    }

    // CommandQueue.Callbacks