Signal view is no loner apart of this fragment

Removing custom battery display functionality until a complete fix
is implemented.

Bug:77473401

Test: deploy a car build
Change-Id: I3a18ee45d23caa8d2c798cede3e9cb3e7334372f
This commit is contained in:
Brad Stenning
2018-04-02 15:06:44 -07:00
parent 50228a6471
commit cc0439b5de

View File

@@ -182,27 +182,6 @@ public class CarStatusBar extends StatusBar implements
// By default, the BatteryMeterView should not be visible. It will be toggled
// when a device has connected by bluetooth.
mBatteryMeterView.setVisibility(View.GONE);
ViewStub stub = fragment.getView().findViewById(R.id.connected_device_signals_stub);
View signalsView = stub.inflate();
// When a ViewStub if inflated, it does not respect the margins on the
// inflated view.
// As a result, manually add the ending margin.
((LinearLayout.LayoutParams) signalsView.getLayoutParams()).setMarginEnd(
mContext.getResources().getDimensionPixelOffset(
R.dimen.status_bar_connected_device_signal_margin_end));
if (mConnectedDeviceSignalController != null) {
mConnectedDeviceSignalController.stopListening();
}
mConnectedDeviceSignalController = new ConnectedDeviceSignalController(mContext,
signalsView);
mConnectedDeviceSignalController.startListening();
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "makeStatusBarView(). mBatteryMeterView: " + mBatteryMeterView);
}
});
}