diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-09-11 17:25:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-11 17:25:56 +0000 |
commit | 129e16a2ca0fceb7ea32e584b3826a34128f216c (patch) | |
tree | 48fa005a9595acbd891a58ed7763bccdffb9d8d3 /packages/DocumentsUI | |
parent | c206aa58fecaabbed91d1ca556ccf75f0256bd41 (diff) | |
parent | 13d764f36dd5ef527e625298b702d4e035f0f7c1 (diff) | |
download | frameworks_base-129e16a2ca0fceb7ea32e584b3826a34128f216c.zip frameworks_base-129e16a2ca0fceb7ea32e584b3826a34128f216c.tar.gz frameworks_base-129e16a2ca0fceb7ea32e584b3826a34128f216c.tar.bz2 |
am f5650765: am 9d61be1f: am bed348e3: Merge "Manage mode shouldn\'t block for other providers." into lmp-dev
* commit 'f5650765950863ed8db80b4b74301924795bd8a6':
Manage mode shouldn't block for other providers.
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/RootsCache.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java index f81690a..d72db1d 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java +++ b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java @@ -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(); |