Fix vertical nav button direction issue
Bug: 32516898 Change-Id: I00d5478b9bef87918d59f3021a9368fd3f2e0c20 Test: locally on device Merged-In: Id94f08c066db101f630e69874bcdefb177e6f0f5
This commit is contained in:
@@ -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.
|
* Interface for button actions.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -578,6 +578,8 @@ public class NavigationBarView extends LinearLayout {
|
|||||||
|
|
||||||
updateTaskSwitchHelper();
|
updateTaskSwitchHelper();
|
||||||
setNavigationIconHints(mNavigationIconHints, true);
|
setNavigationIconHints(mNavigationIconHints, true);
|
||||||
|
|
||||||
|
getHomeButton().setLandscape(mVertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateTaskSwitchHelper() {
|
private void updateTaskSwitchHelper() {
|
||||||
|
|||||||
Reference in New Issue
Block a user