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

Commit 9efa5ded authored by Xiaohui Chen's avatar Xiaohui Chen
Browse files

Fix vertical nav button direction issue

Bug: 32516898
Test: locally on device
Change-Id: Id94f08c066db101f630e69874bcdefb177e6f0f5
parent 54365465
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -186,4 +186,14 @@ public class ButtonDispatcher {
        }
    }

    public void setLandscape(boolean landscape) {
        final int N = mViews.size();
        for (int i = 0; i < N; i++) {
            final View view = mViews.get(i);
            if (view instanceof ButtonInterface) {
                ((ButtonInterface) view).setLandscape(landscape);
            }
        }
    }

}
+2 −0
Original line number Diff line number Diff line
@@ -590,6 +590,8 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav

        updateTaskSwitchHelper();
        setNavigationIconHints(mNavigationIconHints, true);

        getHomeButton().setLandscape(mVertical);
    }

    public void onKeyguardOccludedChanged(boolean keyguardOccluded) {