Merge "Update navigation bar upon change of display density"
am: f46b14b6af
Change-Id: I5c9d6770f8f3343fc41650ec4de2696fada0ee19
This commit is contained in:
@@ -99,7 +99,6 @@ public class CarStatusBar extends StatusBar implements
|
|||||||
Log.d(TAG, "Connecting to HVAC service");
|
Log.d(TAG, "Connecting to HVAC service");
|
||||||
Dependency.get(HvacController.class).connectToCarService();
|
Dependency.get(HvacController.class).connectToCarService();
|
||||||
}
|
}
|
||||||
mCarFacetButtonController = Dependency.get(CarFacetButtonController.class);
|
|
||||||
mDeviceProvisionedController = Dependency.get(DeviceProvisionedController.class);
|
mDeviceProvisionedController = Dependency.get(DeviceProvisionedController.class);
|
||||||
mDeviceIsProvisioned = mDeviceProvisionedController.isDeviceProvisioned();
|
mDeviceIsProvisioned = mDeviceProvisionedController.isDeviceProvisioned();
|
||||||
if (!mDeviceIsProvisioned) {
|
if (!mDeviceIsProvisioned) {
|
||||||
@@ -117,7 +116,7 @@ public class CarStatusBar extends StatusBar implements
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove all content from navbars and rebuild them. Used to allow for different nav bars
|
* Remove all content from navbars and rebuild them. Used to allow for different nav bars
|
||||||
* before and after the device is provisioned
|
* before and after the device is provisioned. Also for change of density and font size.
|
||||||
*/
|
*/
|
||||||
private void restartNavBars() {
|
private void restartNavBars() {
|
||||||
mCarFacetButtonController.removeAll();
|
mCarFacetButtonController.removeAll();
|
||||||
@@ -216,6 +215,7 @@ public class CarStatusBar extends StatusBar implements
|
|||||||
protected void makeStatusBarView() {
|
protected void makeStatusBarView() {
|
||||||
super.makeStatusBarView();
|
super.makeStatusBarView();
|
||||||
|
|
||||||
|
mCarFacetButtonController = Dependency.get(CarFacetButtonController.class);
|
||||||
mNotificationPanelBackground = getDefaultWallpaper();
|
mNotificationPanelBackground = getDefaultWallpaper();
|
||||||
mScrimController.setScrimBehindDrawable(mNotificationPanelBackground);
|
mScrimController.setScrimBehindDrawable(mNotificationPanelBackground);
|
||||||
|
|
||||||
@@ -513,6 +513,7 @@ public class CarStatusBar extends StatusBar implements
|
|||||||
@Override
|
@Override
|
||||||
public void onDensityOrFontScaleChanged() {
|
public void onDensityOrFontScaleChanged() {
|
||||||
super.onDensityOrFontScaleChanged();
|
super.onDensityOrFontScaleChanged();
|
||||||
|
restartNavBars();
|
||||||
// Need to update the background on density changed in case the change was due to night
|
// Need to update the background on density changed in case the change was due to night
|
||||||
// mode.
|
// mode.
|
||||||
mNotificationPanelBackground = getDefaultWallpaper();
|
mNotificationPanelBackground = getDefaultWallpaper();
|
||||||
|
|||||||
Reference in New Issue
Block a user