Notification summary updates
- Fix app info summary - Add configure notifications summary Test: make -j RunSettingsRoboTests Change-Id: Ic3c3036ee903fe7403032925a8145693807793d5 Fixes: 77598357 Fixes: 73018368
This commit is contained in:
@@ -81,11 +81,15 @@ public class AppNotificationPreferenceController extends AppInfoPreferenceContro
|
||||
if (appRow == null) {
|
||||
return "";
|
||||
}
|
||||
if (appRow.banned || appRow.channelCount == appRow.blockedChannelCount) {
|
||||
return context.getString(R.string.notifications_disabled);
|
||||
if (appRow.banned) {
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else if (appRow.channelCount == 0) {
|
||||
return context.getText(R.string.notifications_enabled);
|
||||
} else if (appRow.channelCount == appRow.blockedChannelCount) {
|
||||
return context.getText(R.string.notifications_disabled);
|
||||
} else {
|
||||
if (appRow.blockedChannelCount == 0) {
|
||||
return context.getString(R.string.notifications_enabled);
|
||||
return context.getText(R.string.notifications_enabled);
|
||||
}
|
||||
return context.getString(R.string.notifications_enabled_with_info,
|
||||
context.getResources().getQuantityString(R.plurals.notifications_categories_off,
|
||||
|
Reference in New Issue
Block a user