am e3e2c471: Merge "Set ActionMode title to the number of selected files"

* commit 'e3e2c471b2504335e99ed15975c3c5c9dfbf2795':
  Set ActionMode title to the number of selected files
This commit is contained in:
Jeff Sharkey
2014-05-10 19:42:02 +00:00
committed by Android Git Automerger

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;
}