Merge "Use the plural format for "See all COUNT apps"" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dbec4552f7
@@ -4289,7 +4289,10 @@
|
|||||||
<!-- Category title listing recently used apps [CHAR_LIMIT=50]-->
|
<!-- Category title listing recently used apps [CHAR_LIMIT=50]-->
|
||||||
<string name="recent_app_category_title">Recently opened apps</string>
|
<string name="recent_app_category_title">Recently opened apps</string>
|
||||||
<!-- Preference title for showing all apps on device [CHAR_LIMIT=50]-->
|
<!-- Preference title for showing all apps on device [CHAR_LIMIT=50]-->
|
||||||
<string name="see_all_apps_title">See all <xliff:g id="count" example="3">%1$d</xliff:g> apps</string>
|
<plurals name="see_all_apps_title">
|
||||||
|
<item quantity="one">See all apps</item>
|
||||||
|
<item quantity="other">See all %1$d apps</item>
|
||||||
|
</plurals>
|
||||||
|
|
||||||
<!-- Title of the dialog that asks the user to contact the IT admin to reset password [CHAR LIMIT=40] -->
|
<!-- Title of the dialog that asks the user to contact the IT admin to reset password [CHAR LIMIT=40] -->
|
||||||
<string name="forgot_password_title">Contact your IT admin</string>
|
<string name="forgot_password_title">Contact your IT admin</string>
|
||||||
|
@@ -117,7 +117,8 @@ public class RecentAppsPreferenceController extends BasePreferenceController
|
|||||||
@Override
|
@Override
|
||||||
protected void onCountComplete(int num) {
|
protected void onCountComplete(int num) {
|
||||||
mAppEntitiesController.setHeaderDetails(
|
mAppEntitiesController.setHeaderDetails(
|
||||||
mContext.getString(R.string.see_all_apps_title, num));
|
mContext.getResources().getQuantityString(R.plurals.see_all_apps_title,
|
||||||
|
num, num));
|
||||||
mAppEntitiesController.apply();
|
mAppEntitiesController.apply();
|
||||||
}
|
}
|
||||||
}.execute();
|
}.execute();
|
||||||
|
Reference in New Issue
Block a user