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

Commit 2e528712 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Manage mode shouldn't block for other providers." into lmp-dev

parents ea9aa9a2 c9d71506
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -116,9 +116,6 @@ public class RootsCache {
     * Gather roots from storage providers belonging to given package name.
     */
    public void updatePackageAsync(String packageName) {
        // Need at least first load, since we're going to be using previously
        // cached values for non-matching packages.
        waitForFirstLoad();
        new UpdateTask(packageName).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
    }

@@ -183,6 +180,12 @@ public class RootsCache {
        protected Void doInBackground(Void... params) {
            final long start = SystemClock.elapsedRealtime();

            if (mFilterPackage != null) {
                // Need at least first load, since we're going to be using
                // previously cached values for non-matching packages.
                waitForFirstLoad();
            }

            mTaskRoots.put(mRecentsRoot.authority, mRecentsRoot);

            final ContentResolver resolver = mContext.getContentResolver();