diff --git a/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java index 7e3e96798c7bd..2db8fad714a98 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java +++ b/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java @@ -651,6 +651,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: @@ -661,6 +663,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: