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

Commit 110dd5f4 authored by Xiaohui Chen's avatar Xiaohui Chen Committed by android-build-merger
Browse files

Fix vertical nav button direction issue

am: 854bc8ea

Change-Id: Ic1a9a82c4c2c89a2c89430495b6f751b9e6ba717
parents 3bd3fb44 854bc8ea
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -186,6 +186,16 @@ 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);
            }
        }
    }

    /**
     * Interface for button actions.
     */
+2 −0
Original line number Diff line number Diff line
@@ -578,6 +578,8 @@ public class NavigationBarView extends LinearLayout {

        updateTaskSwitchHelper();
        setNavigationIconHints(mNavigationIconHints, true);

        getHomeButton().setLandscape(mVertical);
    }

    private void updateTaskSwitchHelper() {