am 8a265146: Merge "Selected count string needs plurals." into mnc-dev

* commit '8a26514687ccf651eb73d5acdd3ae7c62d247d97':
  Selected count string needs plurals.
This commit is contained in:
Jeff Sharkey
2015-06-11 18:31:15 +00:00
committed by Android Git Automerger
5 changed files with 18 additions and 7 deletions

View File

@@ -1790,6 +1790,15 @@ public class TextUtils {
}
}
/**
* Return localized string representing the given number of selected items.
*
* @hide
*/
public static CharSequence formatSelectedCount(int count) {
return Resources.getSystem().getQuantityString(R.plurals.selected_count, count, count);
}
private static Object sLock = new Object();
private static char[] sTemp = null;