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

Commit f9f6d64e authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

Merge "Never fetch notification badges for USER_SYSTEM" into nyc-dev am: 0a9ccf26

am: 688ebc6f

* commit '688ebc6f':
  Never fetch notification badges for USER_SYSTEM

Change-Id: I8492b9148b66b9aef69362b10de10ef8f991ecc7
parents a418a9f1 688ebc6f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3106,6 +3106,11 @@ public class Notification implements Parcelable
        }

        private Drawable getProfileBadgeDrawable() {
            if (mContext.getUserId() == UserHandle.USER_SYSTEM) {
                // This user can never be a badged profile,
                // and also includes USER_ALL system notifications.
                return null;
            }
            // Note: This assumes that the current user can read the profile badge of the
            // originating user.
            return mContext.getPackageManager().getUserBadgeForDensityNoBackground(