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

Commit eda5d518 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Only persist category hint when actually mutated.

Otherwise we're churning disk.

Test: builds, boots
Bug: 34328134
Change-Id: Iabc485b9ce3644e914240b5de5bcea98d939b2cb
parent c70e5815
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -13018,10 +13018,12 @@ public class PackageManagerService extends IPackageManager.Stub {
                        + " is not installer for " + packageName);
            }
            if (ps.categoryHint != categoryHint) {
                ps.categoryHint = categoryHint;
                scheduleWriteSettingsLocked();
            }
        }
    }
    private void processPendingInstall(final InstallArgs args, final int currentStatus) {
        // Queue up an async operation since the package installation may take a little while.