diff options
| -rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/RootsCache.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java index cb46bca741a1..cf715f15dfd2 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java +++ b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java @@ -372,10 +372,8 @@ public class RootsCache { if (state.directoryCopy && root.isDownloads()) continue; // Only show empty roots when creating, or in browse mode. - if (empty && (state.action != State.ACTION_BROWSE || - state.action != State.ACTION_CREATE || - state.action != State.ACTION_OPEN_TREE || - state.action != State.ACTION_OPEN_COPY_DESTINATION)) { + if (empty && (state.action == State.ACTION_OPEN + || state.action == State.ACTION_GET_CONTENT)) { if (DEBUG) Log.i(TAG, "Skipping empty root: " + root); continue; } |