Address lifecycle crash in car sysui
We address this by removing the phone specific lifecycle view from car sysui. Bug: 161366224 Test: See bug for manual testing steps Change-Id: I1309aa938f1bcc5c634a531a2eca3a45f1eb2946
This commit is contained in:
@@ -31,10 +31,4 @@
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
/>
|
||||
|
||||
<com.android.systemui.BatteryMeterView
|
||||
android:id="@+id/battery"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
/>
|
||||
</LinearLayout>
|
||||
@@ -26,7 +26,6 @@ import android.widget.LinearLayout;
|
||||
import androidx.annotation.IdRes;
|
||||
|
||||
import com.android.settingslib.Utils;
|
||||
import com.android.systemui.BatteryMeterView;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.plugins.DarkIconDispatcher;
|
||||
|
||||
@@ -49,10 +48,7 @@ public class CarStatusBarHeader extends LinearLayout {
|
||||
float intensity = colorForeground == Color.WHITE ? 0f : 1f;
|
||||
Rect tintArea = new Rect(0, 0, 0, 0);
|
||||
|
||||
applyDarkness(R.id.battery, tintArea, intensity, colorForeground);
|
||||
applyDarkness(R.id.clock, tintArea, intensity, colorForeground);
|
||||
|
||||
((BatteryMeterView) findViewById(R.id.battery)).setForceShowPercent(true);
|
||||
}
|
||||
|
||||
private void applyDarkness(@IdRes int id, Rect tintArea, float intensity, int color) {
|
||||
|
||||
Reference in New Issue
Block a user