Update battery content descriptions with labels

Change-Id: I0ad4ca753f8f5e1a01e2e21181526ddb921d487a
Fixes: 28301362
This commit is contained in:
Jason Monk
2016-06-21 13:36:57 -04:00
parent f315e2e6f0
commit d589bafc4a
2 changed files with 9 additions and 1 deletions

View File

@@ -432,6 +432,9 @@ public class PowerUsageSummary extends PowerUsageBase {
final UserHandle userHandle = new UserHandle(userId);
pgp.setIcon(mUm.getBadgedIconForUser(entry.getIcon(), userHandle));
pgp.setTitle(entry.name);
if (entry.sipper.drainType == DrainType.APP) {
pgp.setContentDescription(entry.name);
}
}
break;
case BatteryEntry.MSG_REPORT_FULLY_DRAWN: