summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/documentsui/roots/RootsCache.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/documentsui/roots/RootsCache.java b/src/com/android/documentsui/roots/RootsCache.java
index ad91228c1..3d367a6bf 100644
--- a/src/com/android/documentsui/roots/RootsCache.java
+++ b/src/com/android/documentsui/roots/RootsCache.java
@@ -260,7 +260,11 @@ public class RootsCache implements RootsAccess {
roots.add(root);
}
} catch (Exception e) {
- Log.w(TAG, "Failed to load some roots from " + authority + ": " + e);
+ Log.w(TAG, "Failed to load some roots from " + authority, e);
+ // We didn't load every root from the provider. Don't put it to
+ // system cache so that we'll try loading them again next time even
+ // if forceRefresh is false.
+ return roots;
} finally {
IoUtils.closeQuietly(cursor);
ContentProviderClient.releaseQuietly(client);