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

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

Merge "Prevent interacting with secondary handle if not initialized" into sc-dev

parents de291dab de290325
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -666,7 +666,7 @@ public class NavigationBar implements View.OnAttachStateChangeListener,
    }

    private void initSecondaryHomeHandleForRotation() {
        if (!canShowSecondaryHandle()) {
        if (mNavBarMode != NAV_BAR_MODE_GESTURAL) {
            return;
        }

@@ -1524,7 +1524,7 @@ public class NavigationBar implements View.OnAttachStateChangeListener,
    }

    private boolean canShowSecondaryHandle() {
        return mNavBarMode == NAV_BAR_MODE_GESTURAL;
        return mNavBarMode == NAV_BAR_MODE_GESTURAL && mOrientationHandle != null;
    }

    private final Consumer<Integer> mRotationWatcher = rotation -> {