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

Commit 33fa275e authored by Matthew Ng's avatar Matthew Ng
Browse files

Properly remove edge panels

Forgot that on detach prototype would turn off so it would not detach.

Bug: 112934365
Test: manual
Change-Id: I38425f4ae4caf95dabc5f7ffdcb3c396cacb758f
parent 38cb44b8
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -1237,9 +1237,7 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
            mButtonDispatchers.valueAt(i).onDestroy();
        }

        if (mPrototypeController.isEnabled()) {
            WindowManager wm = (WindowManager) getContext()
                    .getSystemService(Context.WINDOW_SERVICE);
        WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);
        if (mLeftEdgePanel != null) {
            wm.removeView(mLeftEdgePanel);
        }
@@ -1247,7 +1245,6 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
            wm.removeView(mRightEdgePanel);
        }
    }
    }

    private void setUpSwipeUpOnboarding(boolean connectedToOverviewProxy) {
        if (connectedToOverviewProxy) {