Merge "Fix crashloop in CarStatusBar."

This commit is contained in:
TreeHugger Robot
2017-01-24 04:04:34 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ public class CarStatusBar extends PhoneStatusBar implements
SystemServicesProxy.getInstance(mContext).registerTaskStackListener(mTaskStackListener);
registerPackageChangeReceivers();
createBatteryController();
mCarBatteryController.startListening();
mConnectedDeviceSignalController.startListening();
}
@@ -113,8 +114,7 @@ public class CarStatusBar extends PhoneStatusBar implements
return statusBarView;
}
@Override
protected BatteryController createBatteryController() {
private BatteryController createBatteryController() {
mCarBatteryController = new CarBatteryController(mContext);
mCarBatteryController.addBatteryViewHandler(this);
return mCarBatteryController;

View File

@@ -989,10 +989,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
}
protected BatteryController createBatteryController() {
return new BatteryControllerImpl(mContext);
}
private void inflateShelf() {
mNotificationShelf =
(NotificationShelf) LayoutInflater.from(mContext).inflate(