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

Commit 01d4ad9f authored by Songchun Fan's avatar Songchun Fan
Browse files

[PackageInstallerService] only update session badge when needed

Bug: 239625516
Fixes: 239625516
Test: n/a
Change-Id: I74cd70341b6fcf1deef34cad700a3807e3b99d00
parent 5aaf950b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -912,10 +912,12 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
            if (session == null || !isCallingUidOwner(session)) {
                throw new SecurityException("Caller has no access to session " + sessionId);
            }
            if (!appLabel.equals(session.params.appLabel)) {
                session.params.appLabel = appLabel;
                mInternalCallback.onSessionBadgingChanged(session);
            }
        }
    }

    @Override
    public void abandonSession(int sessionId) {