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

Commit 0200e346 authored by Steve McKay's avatar Steve McKay
Browse files

Show empty roots except for content pickers.

Bug: 24140864

Change-Id: I9fae80a1e3d413e97ee099bee9c59f81f713cf27
parent e25a8292
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
            }