Merge "[PackageInstallerService] only update session badge when needed"
This commit is contained in:
committed by
Android (Google) Code Review
commit
95fab76bcc
@@ -912,8 +912,10 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
|
||||
if (session == null || !isCallingUidOwner(session)) {
|
||||
throw new SecurityException("Caller has no access to session " + sessionId);
|
||||
}
|
||||
session.params.appLabel = appLabel;
|
||||
mInternalCallback.onSessionBadgingChanged(session);
|
||||
if (!appLabel.equals(session.params.appLabel)) {
|
||||
session.params.appLabel = appLabel;
|
||||
mInternalCallback.onSessionBadgingChanged(session);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user