Merge "Guard against battery tile crash" into nyc-dev
This commit is contained in:
@@ -182,6 +182,9 @@ public class BatteryTile extends QSTile<QSTile.State> implements BatteryControll
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void bindView() {
|
private void bindView() {
|
||||||
|
if (mCurrentView == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mDrawable.onBatteryLevelChanged(100, false, false);
|
mDrawable.onBatteryLevelChanged(100, false, false);
|
||||||
mDrawable.onPowerSaveChanged(true);
|
mDrawable.onPowerSaveChanged(true);
|
||||||
mDrawable.disableShowPercent();
|
mDrawable.disableShowPercent();
|
||||||
|
|||||||
Reference in New Issue
Block a user