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

Commit 4d491a60 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix bug in initializing preferred activities.

Now that we are smarter about the initialization, we need
to do this after all packages are scanned.

Change-Id: I598f5ef84dcc83779bbff29e4c92136c63fb32de
parent 53de5c29
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1323,6 +1323,12 @@ public class PackageManagerService extends IPackageManager.Stub {
                            ? (UPDATE_PERMISSIONS_REPLACE_PKG|UPDATE_PERMISSIONS_REPLACE_ALL)
                            : 0));

            // If this is the first boot, and it is a normal boot, then
            // we need to initialize the default preferred apps.
            if (!mRestoredSettings && !onlyCore) {
                mSettings.readDefaultPreferredAppsLPw(this, 0);
            }

            // can downgrade to reader
            mSettings.writeLPr();

+0 −3
Original line number Diff line number Diff line
@@ -1603,9 +1603,6 @@ final class Settings {
                    mReadMessages.append("No settings file found\n");
                    PackageManagerService.reportSettingsProblem(Log.INFO,
                            "No settings file; creating initial state");
                    if (!onlyCore) {
                        readDefaultPreferredAppsLPw(service, 0);
                    }
                    mInternalSdkPlatform = mExternalSdkPlatform = sdkVersion;
                    return false;
                }