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

Commit 3f3563c3 authored by Govinda Wasserman's avatar Govinda Wasserman
Browse files

Fixes AssistOrbController crash

AssistOrbController caused a crash by trying to remove a view that was
not attached. This change adds a check if the view is attached before
removal.

Test: Tested locally
BUG: 195902117
FIX: 195902117
Change-Id: Ibc65a9b1789c7ee629c28de31392fffc0536ed70
parent 57244b6e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -57,7 +57,9 @@ public class AssistOrbController {
        public void run() {
            mView.removeCallbacks(this);
            mView.show(false /* show */, true /* animate */, () -> {
                if (mView.isAttachedToWindow()) {
                    mWindowManager.removeView(mView);
                }
            });
        }
    };