Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4801433 authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

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

parents 36414eab 1c669595
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
        }