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

Commit 5c14f64a authored by Ankit Gupta's avatar Ankit Gupta Committed by Gerrit Code Review
Browse files

CMFileManager: Remove shortcut option for secure folders

Change-Id: I31f568c04dae870d0108e915dd05071461b3196d
Issue-Id: FEIJ-1360
parent 7fd6ba8a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -775,6 +775,10 @@ public class ActionsDialog implements OnItemClickListener, OnItemLongClickListen
            menu.removeItem(R.id.mnu_actions_add_shortcut);
            menu.removeItem(R.id.mnu_actions_add_to_bookmarks);
        } else if (mGlobal) {
            // Remove shortcuts for secure folders
            if (mFso != null && mFso.isSecure()) {
                menu.removeItem(R.id.mnu_actions_add_shortcut_current_folder);
            }
            if (selection != null && selection.size() > 0) {
                for (FileSystemObject fso : selection) {
                    if (fso.isSecure() || fso.isRemote()) {