Merge "Fix refresh issue of badged icons in Battery Settings" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0598e6f684
@@ -332,7 +332,9 @@ public class PowerUsageSummary extends PreferenceFragment {
|
||||
(PowerGaugePreference) findPreference(
|
||||
Integer.toString(entry.sipper.uidObj.getUid()));
|
||||
if (pgp != null) {
|
||||
pgp.setIcon(entry.icon);
|
||||
final int userId = UserHandle.getUserId(entry.sipper.getUid());
|
||||
final UserHandle userHandle = new UserHandle(userId);
|
||||
pgp.setIcon(mUm.getBadgedDrawableForUser(entry.getIcon(), userHandle));
|
||||
pgp.setTitle(entry.name);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user