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

Commit 9df62364 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Register the bubble listener after everything has been initialized" into main

parents 36b02ec3 173ac574
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -168,10 +168,6 @@ public class BubbleBarController extends IBubblesListener.Stub {
        mBarView = bubbleView; // Need the view for inflating bubble views.

        mSystemUiProxy = SystemUiProxy.INSTANCE.get(context);

        if (sBubbleBarEnabled) {
            mSystemUiProxy.setBubblesListener(this);
        }
    }

    public void onDestroy() {
@@ -197,6 +193,10 @@ public class BubbleBarController extends IBubblesListener.Stub {
            mBubbleBarViewController.setUpdateSelectedBubbleAfterCollapse(
                    key -> setSelectedBubbleInternal(mBubbles.get(key)));
            mBubbleBarViewController.setBoundsChangeListener(this::onBubbleBarBoundsChanged);

            if (sBubbleBarEnabled) {
                mSystemUiProxy.setBubblesListener(this);
            }
        });
    }