Merge "Use the custom name in the battery attribution if it is unknown item" into tm-dev am: c4801433d9 am: 84e451d784
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17730656 Change-Id: Ie15b204a471c88ecb8792dae932b7980aab84dd2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -625,8 +625,9 @@ public class BatteryEntry {
|
||||
iconId = R.drawable.ic_settings_phone_idle;
|
||||
break;
|
||||
default:
|
||||
name = DebugUtils.constantToString(BatteryConsumer.class, "POWER_COMPONENT_",
|
||||
powerComponentId);
|
||||
Log.w(TAG, "unknown attribute:" + DebugUtils.constantToString(
|
||||
BatteryConsumer.class, "POWER_COMPONENT_", powerComponentId));
|
||||
name = null;
|
||||
iconId = R.drawable.ic_power_system;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user