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

Commit 0598e6f6 authored by Zoltan Szatmary-Ban's avatar Zoltan Szatmary-Ban Committed by Android (Google) Code Review
Browse files

Merge "Fix refresh issue of badged icons in Battery Settings" into lmp-dev

parents 74f34e49 08c2f36c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;