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

Commit 7d4c3a2a authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: fix nav bar arrow keys for RTL locales



Change-Id: I567636ab0beff3ad6e12c8552cf0d1447d7bc288
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit 73869eb9)
parent 376b3190
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -156,7 +156,8 @@ public class NavbarEditor implements View.OnTouchListener {
        mButtonViews = new ArrayList<KeyButtonView>();

        KeyButtonView dpadLeft = (KeyButtonView) mParent.findViewById(R.id.dpad_left);
        dpadLeft.setInfo(NAVBAR_DPAD_LEFT, orientation, true);
        dpadLeft.setInfo(parent.isLayoutRtl() ? NAVBAR_DPAD_RIGHT
                                              : NAVBAR_DPAD_LEFT, orientation, true);
        mButtonViews.add(dpadLeft);

        for (int id : BUTTON_IDS) {
@@ -164,7 +165,8 @@ public class NavbarEditor implements View.OnTouchListener {
        }

        KeyButtonView dpadRight = (KeyButtonView) mParent.findViewById(R.id.dpad_right);
        dpadRight.setInfo(NAVBAR_DPAD_RIGHT, orientation, true);
        dpadRight.setInfo(parent.isLayoutRtl() ? NAVBAR_DPAD_LEFT
                                               : NAVBAR_DPAD_RIGHT, orientation, true);
        mButtonViews.add(dpadRight);
    }