Use the plural format for "See all COUNT apps"

Although there will never be only one app on the device, we still have
to use the plural format for the strings.

Fixes: 146513299
Test: rebuild and see the string in Apps&Notifications page.
Change-Id: I326be50cfddb605584390ebba57dbd06c0ac29b0
This commit is contained in:
Yi-Ling Chuang
2020-06-04 17:14:17 +08:00
parent 5c1b9c357d
commit d44a2fe211
2 changed files with 6 additions and 2 deletions

View File

@@ -117,7 +117,8 @@ public class RecentAppsPreferenceController extends BasePreferenceController
@Override
protected void onCountComplete(int num) {
mAppEntitiesController.setHeaderDetails(
mContext.getString(R.string.see_all_apps_title, num));
mContext.getResources().getQuantityString(R.plurals.see_all_apps_title,
num, num));
mAppEntitiesController.apply();
}
}.execute();