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

Commit 2fbe7280 authored by Steve McKay's avatar Steve McKay Committed by Android (Google) Code Review
Browse files

Merge "Show empty roots except for content pickers."

parents 32a57760 0200e346
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;
            }