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

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

Merge "Move expensive code from BroadcastReceiver to background thread"

parents e855babe b29dcce6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import android.sysprop.ApexProperties;
import android.util.Slog;

import com.android.internal.annotations.GuardedBy;
import com.android.internal.os.BackgroundThread;
import com.android.internal.util.IndentingPrintWriter;

import java.io.File;
@@ -263,7 +264,8 @@ abstract class ApexManager {
                    populateAllPackagesCacheIfNeeded();
                    mContext.unregisterReceiver(this);
                }
            }, new IntentFilter(Intent.ACTION_BOOT_COMPLETED));
            }, new IntentFilter(Intent.ACTION_BOOT_COMPLETED), /* broadcastPermission */ null,
                    BackgroundThread.getHandler());
        }

        private void populateAllPackagesCacheIfNeeded() {