summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-05-10 19:39:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-10 19:39:39 +0000
commite3e2c471b2504335e99ed15975c3c5c9dfbf2795 (patch)
treee394e103863d65a7517ce5030aeaedf7da7b59d2 /packages/DocumentsUI
parentf6c9c4204c2f8f86277d081112c9dd863ddaa778 (diff)
parent22d3990273a1cb5e61360ac42d1d4e6156d762ed (diff)
downloadframeworks_base-e3e2c471b2504335e99ed15975c3c5c9dfbf2795.zip
frameworks_base-e3e2c471b2504335e99ed15975c3c5c9dfbf2795.tar.gz
frameworks_base-e3e2c471b2504335e99ed15975c3c5c9dfbf2795.tar.bz2
Merge "Set ActionMode title to the number of selected files"
Diffstat (limited to 'packages/DocumentsUI')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
index b2b2bd8..9069a55 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
@@ -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;
}