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

Commit 419b391c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Changed edge back panels back to nav overview fixes various bugs"

parents f376daf6 0c88645b
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
@@ -346,8 +346,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);
                }