Merge "Update subTitle of NotificationChannelSlice"
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user