summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI/src
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-06-11 09:16:19 -0700
committerJeff Sharkey <jsharkey@android.com>2015-06-11 09:19:37 -0700
commitf491c72e4a0b6d692aaf459a9a45a8c1462e713b (patch)
treee2b03ac71dad1eee1f0273a45791711ddfa5b4b2 /packages/DocumentsUI/src
parent1f86c1ae83557d7e03c7bd3e5222137b03216bd4 (diff)
downloadframeworks_base-f491c72e4a0b6d692aaf459a9a45a8c1462e713b.zip
frameworks_base-f491c72e4a0b6d692aaf459a9a45a8c1462e713b.tar.gz
frameworks_base-f491c72e4a0b6d692aaf459a9a45a8c1462e713b.tar.bz2
Selected count string needs plurals.
Bug: 21717427 Change-Id: Ie0db8ac30244b022ca5838969fb085230bfc4499
Diffstat (limited to 'packages/DocumentsUI/src')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
index a789da8..f4be9c5 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
@@ -54,6 +54,7 @@ import android.os.OperationCanceledException;
import android.os.Parcelable;
import android.provider.DocumentsContract;
import android.provider.DocumentsContract.Document;
+import android.text.TextUtils;
import android.text.format.DateUtils;
import android.text.format.Formatter;
import android.text.format.Time;
@@ -474,8 +475,7 @@ 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()));
+ mode.setTitle(TextUtils.formatSelectedCount(mCurrentView.getCheckedItemCount()));
return true;
}
@@ -571,8 +571,7 @@ public class DirectoryFragment extends Fragment {
}
}
- mode.setTitle(getResources()
- .getString(R.string.mode_selected_count, mCurrentView.getCheckedItemCount()));
+ mode.setTitle(TextUtils.formatSelectedCount(mCurrentView.getCheckedItemCount()));
}
};