commit | 33db4b77d58a2ae81c84278e2447ab011071a622 | [log] [tgz] |
---|---|---|
author | Xiaohui Chen <xiaohuic@google.com> | Mon Dec 05 19:20:16 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Dec 05 19:20:19 2016 +0000 |
tree | 5a379c27295e477e7e9952edbddfb8d6dbef163b | |
parent | a1b10fcdb9c39ec54996cceb09ca391a8121b2d3 [diff] | |
parent | 854bc8ea1efc8b2ce74d1812955200e041555fc7 [diff] |
Merge "Fix vertical nav button direction issue" into nyc-mr2-dev
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java index 95cb672..1dbea16 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java
@@ -186,6 +186,16 @@ } } + 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. */
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java index 3f764b4..a0d1b42 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
@@ -578,6 +578,8 @@ updateTaskSwitchHelper(); setNavigationIconHints(mNavigationIconHints, true); + + getHomeButton().setLandscape(mVertical); } private void updateTaskSwitchHelper() {