Merge "Update subTitle of NotificationChannelSlice"

This commit is contained in:
Fan Zhang
2019-02-22 17:49:00 +00:00
committed by Android (Google) Code Review
3 changed files with 56 additions and 6 deletions

View File

@@ -415,9 +415,13 @@ public class NotificationChannelSlice implements CustomSliceable {
private CharSequence getSubTitle(String packageName, int uid) {
final int channelCount = mNotificationBackend.getChannelCount(packageName, uid);
if (channelCount > DEFAULT_EXPANDED_ROW_COUNT) {
return mContext.getString(
R.string.notification_many_channel_count_summary, channelCount);
}
return mContext.getResources().getQuantityString(
R.plurals.notification_channel_count_summary,
channelCount, channelCount);
R.plurals.notification_few_channel_count_summary, channelCount, channelCount);
}
private Intent getAppAndNotificationPageIntent() {