From 2c03247b902d3ae4bc28ea5fec5fdc940e45c3a3 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Thu, 14 Jul 2011 14:01:12 -0700 Subject: [PATCH] cherrypick Change-Id: I86e18c9e5d6dd540d1d49ce6b9c038aed3b986b0 fix doc break Change-Id: I8bc19538145e5436128ecbe632d6ecd20ea8ab7a --- docs/html/guide/topics/resources/string-resource.jd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/html/guide/topics/resources/string-resource.jd b/docs/html/guide/topics/resources/string-resource.jd index 621771a536f5..ecd2d48a958b 100644 --- a/docs/html/guide/topics/resources/string-resource.jd +++ b/docs/html/guide/topics/resources/string-resource.jd @@ -358,10 +358,10 @@ values, with non-exhaustive examples in parentheses:
 int count = getNumberOfsongsAvailable();
 Resources res = {@link android.content.Context#getResources()};
-String songsFound = res.{@link android.content.res.Resources#getQuantityString(int,int,int)
+String songsFound = res.{@link android.content.res.Resources#getQuantityString(int,int)
 getQuantityString}(R.plurals.numberOfSongsAvailable, count, count);
 
-

When using the {@link android.content.res.Resources#getQuantityString(int,int,int) +

When using the {@link android.content.res.Resources#getQuantityString(int,int) getQuantityString()} method, you need to pass the {@code count} twice if your string includes string formatting with a number. For example, for the string {@code %d songs found}, the first {@code count} parameter selects the appropriate plural string and -- 2.11.0