Loading packages/DocumentsUI/src/com/android/documentsui/RootsCache.java +6 −3 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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(); Loading Loading
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java +6 −3 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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(); Loading