Merge "DO NOT MERGE: Change the order of 2 statements to remove race." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-07-26 22:01:43 +00:00
committed by Android (Google) Code Review

View File

@@ -664,10 +664,10 @@ public class DirectoryFragment extends Fragment
return true;
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();
transferDocuments(selection, FileOperationService.OPERATION_COPY);
return true;
case R.id.menu_move_to: