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

Commit 832a4b06 authored by Steve McKay's avatar Steve McKay
Browse files

Finish selection mode after copyto and share...

actions are picked by user.
Bug: 27601508

Change-Id: I32cbc8e8eb4abba4161309327d5ce730610193ad
parent 4eb283cb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -634,6 +634,8 @@ public class DirectoryFragment extends Fragment

                case R.id.menu_share:
                    shareDocuments(selection);
                    // TODO: Only finish selection if share action is completed.
                    mode.finish();
                    return true;

                case R.id.menu_delete:
@@ -644,6 +646,9 @@ public class DirectoryFragment extends Fragment

                case R.id.menu_copy_to:
                    transferDocuments(selection, FileOperationService.OPERATION_COPY);
                    // TODO: Only finish selection mode if copy-to is not canceled.
                    // Need to plum down into handling the way we do with deleteDocuments.
                    mode.finish();
                    return true;

                case R.id.menu_move_to: