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

Commit 0c88645b authored by Matthew Ng's avatar Matthew Ng
Browse files

Changed edge back panels back to nav overview fixes various bugs

- Fixes using back on keyguard to cancel from inputting password
- Fixes hitting dialog boxes like accessibility
- Readjust the height for ime

May fix other things

Test: manual
Fixes: 129088764
Fixes: 128480785
Change-Id: Iedec74e1d8de044270250c474a9af30194901ca4
parent dece92b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ public class NavigationBarEdgePanel extends View {
    public static NavigationBarEdgePanel create(@NonNull Context context, int width, int height,
            int gravity) {
        final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(width, height,
                WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
                WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
                WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
                    | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                    | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
+5 −2
Original line number Diff line number Diff line
@@ -367,8 +367,11 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
            post(() -> {
                // When the ime changes visibility, resize the edge panels to not cover the ime
                final int width = mPrototypeController.getEdgeSensitivityWidth();
                final int height = mContext.getDisplay().getHeight() - imeHeight
                        - getResources().getDimensionPixelOffset(R.dimen.status_bar_height);
                int height = mContext.getDisplay().getHeight() - imeHeight;
                if (!imeVisible) {
                    // Hide the navigation bar area at the bottom for gestures
                    height -= getResources().getDimensionPixelOffset(R.dimen.navigation_bar_height);
                }
                if (mLeftEdgePanel != null) {
                    mLeftEdgePanel.setDimensions(width, height);
                }