[PackageInstallerService] only update session badge when needed
Bug: 239625516 Fixes: 239625516 Test: n/a Change-Id: I74cd70341b6fcf1deef34cad700a3807e3b99d00
This commit is contained in:
@@ -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