Fix text in notification settings for apps that do not send notifications am: e899b4c96c
am: 7f6b3cc7ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20283152 Change-Id: I3b63362fab7d5c532d231b7db82553fc9a7bde4d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -117,6 +117,7 @@ public class NotificationBackend {
|
||||
if (app.requestedPermissions == null || Arrays.stream(app.requestedPermissions)
|
||||
.noneMatch(p -> p.equals(android.Manifest.permission.POST_NOTIFICATIONS))) {
|
||||
row.lockedImportance = true;
|
||||
row.permissionStateLocked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -675,6 +676,9 @@ public class NotificationBackend {
|
||||
public boolean systemApp;
|
||||
public boolean lockedImportance;
|
||||
public boolean showBadge;
|
||||
// For apps target T but have not but has not requested the permission
|
||||
// we cannot change the permission state
|
||||
public boolean permissionStateLocked;
|
||||
public int bubblePreference = NotificationManager.BUBBLE_PREFERENCE_NONE;
|
||||
public int userId;
|
||||
public int blockedChannelCount;
|
||||
|
Reference in New Issue
Block a user