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

Commit 4448bc66 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Finish selection mode after copyto and share..." into nyc-dev

parents b8f2d34f 832a4b06
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -651,6 +651,8 @@ public class DirectoryFragment extends Fragment


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


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


                case R.id.menu_copy_to:
                case R.id.menu_copy_to:
                    transferDocuments(selection, FileOperationService.OPERATION_COPY);
                    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;
                    return true;


                case R.id.menu_move_to:
                case R.id.menu_move_to: