Merge "Use the custom name in the battery attribution if it is unknown item" into tm-dev

This commit is contained in:
YK Hung
2022-04-15 13:06:04 +00:00
committed by Android (Google) Code Review

View File

@@ -625,8 +625,9 @@ public class BatteryEntry {
iconId = R.drawable.ic_settings_phone_idle; iconId = R.drawable.ic_settings_phone_idle;
break; break;
default: default:
name = DebugUtils.constantToString(BatteryConsumer.class, "POWER_COMPONENT_", Log.w(TAG, "unknown attribute:" + DebugUtils.constantToString(
powerComponentId); BatteryConsumer.class, "POWER_COMPONENT_", powerComponentId));
name = null;
iconId = R.drawable.ic_power_system; iconId = R.drawable.ic_power_system;
break; break;
} }