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

Commit fbd8c742 authored by Hai Zhang's avatar Hai Zhang Committed by android-build-merger
Browse files

Merge "Don't update default home before system is ready." into qt-dev

am: a22e3137

Change-Id: Iedcc4be0f7980207610d6d1024d555bd297867f2
parents ab0bf513 a22e3137
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -20921,6 +20921,12 @@ public class PackageManagerService extends IPackageManager.Stub
            Slog.wtf(TAG, "Calling thread " + Thread.currentThread().getName()
            Slog.wtf(TAG, "Calling thread " + Thread.currentThread().getName()
                    + " is holding mPackages", new Throwable());
                    + " is holding mPackages", new Throwable());
        }
        }
        if (!mSystemReady) {
            // We might get called before system is ready because of package changes etc, but
            // finding preferred activity depends on settings provider, so we ignore the update
            // before that.
            return false;
        }
        final Intent intent = getHomeIntent();
        final Intent intent = getHomeIntent();
        final List<ResolveInfo> resolveInfos = queryIntentActivitiesInternal(intent, null,
        final List<ResolveInfo> resolveInfos = queryIntentActivitiesInternal(intent, null,
                PackageManager.GET_META_DATA, userId);
                PackageManager.GET_META_DATA, userId);