summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2013-06-24 21:13:41 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-06-24 21:13:41 -0700
commitee0783a5c1f97ac763a74d0cc7a28cd9f9e4eac3 (patch)
tree6931dab25242443c4f8f22a534e1a951701c1ebb
parentcdd37b577638d7c938f8f8d345a8709fb3de1f26 (diff)
parent189588ef22ae3972c3cc3f8eac56f74f4259c32a (diff)
downloadframeworks_base-ee0783a5c1f97ac763a74d0cc7a28cd9f9e4eac3.zip
frameworks_base-ee0783a5c1f97ac763a74d0cc7a28cd9f9e4eac3.tar.gz
frameworks_base-ee0783a5c1f97ac763a74d0cc7a28cd9f9e4eac3.tar.bz2
Merge "Navbar : Reverse order in landscape" into cm-10.1
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java
index 9de38ad..8704522 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavbarEditor.java
@@ -283,7 +283,7 @@ public class NavbarEditor implements View.OnTouchListener {
protected void saveKeys() {
ButtonInfo[] buttons = new ButtonInfo[NavigationButtons.SLOT_COUNT];
for (int i = 0; i < NavigationButtons.SLOT_COUNT; i++) {
- int idIndex = mVertical ? NavigationButtons.SLOT_COUNT - i : i;
+ int idIndex = mVertical ? NavigationButtons.SLOT_COUNT - i - 1 : i;
buttons[i] = (ButtonInfo) mButtonViews.get(idIndex).getTag();
}
NavigationButtons.storeButtonMap(mContext, buttons);
@@ -299,7 +299,7 @@ public class NavbarEditor implements View.OnTouchListener {
for (int i = 0; i < buttons.length; i++) {
int id = BUTTON_IDS[i];
- ButtonInfo info = buttons[i];
+ ButtonInfo info = buttons[mVertical ? buttons.length - i - 1 : i];
KeyButtonView button = (KeyButtonView) mParent.findViewById(id);
boolean isSmallButton = NavigationButtons.IS_SLOT_SMALL[i];