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

Commit 07c3bd56 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Add null check for TaskView when posting onLocationChanged" into main

parents d8739cea 68cea64c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -963,7 +963,11 @@ public class BubbleExpandedView extends LinearLayout {
                && mTaskView.isAttachedToWindow()) {
            // post this to the looper, because if the device orientation just changed, we need to
            // let the current shell transition complete before updating the task view bounds.
            post(() -> mTaskView.onLocationChanged());
            post(() -> {
                if (mTaskView != null) {
                    mTaskView.onLocationChanged();
                }
            });
        }
        if (mIsOverflow) {
            // post this to the looper so that the view has a chance to be laid out before it can