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

Commit 50b8d1c7 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

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

* commit 'bed348e3f1090417df2694d394ad11ef07a1e44a':
  Manage mode shouldn't block for other providers.
parents 4f3870d3 ca494a7d
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();