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

Commit 4e2a09bf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Shift EconomicPolicy setup to the handler thread."

parents 223d8c46 0aaa579a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -765,6 +765,7 @@ public class InternalResourceService extends SystemService {
            return;
        }
        synchronized (mLock) {
            mCompleteEconomicPolicy.setup(mConfigObserver.getAllDeviceConfigProperties());
            loadInstalledPackageListLocked();
            final boolean isFirstSetup = !mScribe.recordExists();
            if (isFirstSetup) {
@@ -803,10 +804,7 @@ public class InternalResourceService extends SystemService {
        if (mBootPhase < PHASE_THIRD_PARTY_APPS_CAN_START || !mIsEnabled) {
            return;
        }
        synchronized (mLock) {
        mHandler.post(this::setupHeavyWork);
            mCompleteEconomicPolicy.setup(mConfigObserver.getAllDeviceConfigProperties());
        }
    }

    private void onBootPhaseBootCompleted() {