Loading packages/SystemUI/src/com/android/systemui/statusbar/car/CarNavigationBarView.java +7 −0 Original line number Diff line number Diff line Loading @@ -149,4 +149,11 @@ class CarNavigationBarView extends NavigationBarView { public View getCurrentView() { return this; } @Override public void setNavigationIconHints(int hints, boolean force) { // We do not need to set the navigation icon hints for a vehicle // Calling setNavigationIconHints in the base class will result in a NPE as the car // navigation bar does not have a back button. } } packages/SystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +6 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,10 @@ public class CarStatusBar extends PhoneStatusBar { carNavBar.setActivityStarter(this); mNavigationBarView = carNavBar; } @Override protected void repositionNavigationBar() { // The navigation bar for a vehicle will not need to be repositioned, as it is always // set at the bottom. } } packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -1202,7 +1202,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mWindowManager.addView(mNavigationBarView, getNavigationBarLayoutParams()); } private void repositionNavigationBar() { protected void repositionNavigationBar() { if (mNavigationBarView == null || !mNavigationBarView.isAttachedToWindow()) return; prepareNavigationBarView(); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/car/CarNavigationBarView.java +7 −0 Original line number Diff line number Diff line Loading @@ -149,4 +149,11 @@ class CarNavigationBarView extends NavigationBarView { public View getCurrentView() { return this; } @Override public void setNavigationIconHints(int hints, boolean force) { // We do not need to set the navigation icon hints for a vehicle // Calling setNavigationIconHints in the base class will result in a NPE as the car // navigation bar does not have a back button. } }
packages/SystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +6 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,10 @@ public class CarStatusBar extends PhoneStatusBar { carNavBar.setActivityStarter(this); mNavigationBarView = carNavBar; } @Override protected void repositionNavigationBar() { // The navigation bar for a vehicle will not need to be repositioned, as it is always // set at the bottom. } }
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -1202,7 +1202,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mWindowManager.addView(mNavigationBarView, getNavigationBarLayoutParams()); } private void repositionNavigationBar() { protected void repositionNavigationBar() { if (mNavigationBarView == null || !mNavigationBarView.isAttachedToWindow()) return; prepareNavigationBarView(); Loading