Merge "Guard against battery tile crash" into nyc-dev

am: f2bf0c4ba0

* commit 'f2bf0c4ba0a759b05a78ace4cb95c484a050aafe':
  Guard against battery tile crash
This commit is contained in:
Jason Monk
2016-03-02 21:39:38 +00:00
committed by android-build-merger

View File

@@ -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();