Add notification sent count to app info
Test: robotests Bug: 79607096 Change-Id: I6f96ad7890ff8f224749db10fc8a18d4626cac11
This commit is contained in:
@@ -84,14 +84,15 @@ public class AppNotificationPreferenceController extends AppInfoPreferenceContro
|
||||
if (appRow.banned) {
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else if (appRow.channelCount == 0) {
|
||||
return context.getText(R.string.notifications_enabled);
|
||||
return NotificationBackend.getSentSummary(context, appRow.sentByApp, false);
|
||||
} else if (appRow.channelCount == appRow.blockedChannelCount) {
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else {
|
||||
if (appRow.blockedChannelCount == 0) {
|
||||
return context.getText(R.string.notifications_enabled);
|
||||
return NotificationBackend.getSentSummary(context, appRow.sentByApp, false);
|
||||
}
|
||||
return context.getString(R.string.notifications_enabled_with_info,
|
||||
NotificationBackend.getSentSummary(context, appRow.sentByApp, false),
|
||||
context.getResources().getQuantityString(R.plurals.notifications_categories_off,
|
||||
appRow.blockedChannelCount, appRow.blockedChannelCount));
|
||||
}
|
||||
|
Reference in New Issue
Block a user