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

Commit 9a352497 authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

DocumentsUI : Hide advanced menu option when in forced mode

When in EXTRA_SHOW_ADVANCED is set, don't show the menu option to toggle it
since it is a no-op

FEIJ-1079

Change-Id: I0d2ea026736cb7131f451d39e2e662d0c2ae436f
(cherry picked from commit 91642748)
parent 9d9a3772
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -495,7 +495,8 @@ public class DocumentsActivity extends BaseActivity {
            createDir.setVisible(false);
        }

        advanced.setVisible(!(mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE));
        advanced.setVisible(!(mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE)
                && !mState.forceAdvanced);
        fileSize.setVisible(fileSizeVisible);

        settings.setVisible((mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE)