Merge "Set ActionMode title to the number of selected files"

This commit is contained in:
Jeff Sharkey
2014-05-10 19:39:38 +00:00
committed by Gerrit Code Review

View File

@@ -436,6 +436,8 @@ public class DirectoryFragment extends Fragment {
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
mode.getMenuInflater().inflate(R.menu.mode_directory, menu);
mode.setTitle(getResources()
.getString(R.string.mode_selected_count, mCurrentView.getCheckedItemCount()));
return true;
}