Expose onNotificationChannelModified() callback to NotificationAssistantService
Change-Id: I71a72298ed1bbd905ed3b35b67964e1f113b7bc0 Test: manual - verify the new method is called in NAS Bug: 179520528 Bug: 163614153
This commit is contained in:
@@ -41,7 +41,7 @@ oneway interface INotificationListener
|
||||
void onListenerHintsChanged(int hints);
|
||||
void onInterruptionFilterChanged(int interruptionFilter);
|
||||
|
||||
// companion device managers only
|
||||
// companion device managers and assistants only
|
||||
void onNotificationChannelModification(String pkgName, in UserHandle user, in NotificationChannel channel, int modificationType);
|
||||
void onNotificationChannelGroupModification(String pkgName, in UserHandle user, in NotificationChannelGroup group, int modificationType);
|
||||
|
||||
|
||||
@@ -10103,7 +10103,9 @@ public class NotificationManagerService extends SystemService {
|
||||
}
|
||||
|
||||
BackgroundThread.getHandler().post(() -> {
|
||||
if (info.isSystem || hasCompanionDevice(info)) {
|
||||
if (info.isSystem
|
||||
|| hasCompanionDevice(info)
|
||||
|| mAssistants.isServiceTokenValidLocked(info.service)) {
|
||||
notifyNotificationChannelChanged(
|
||||
info, pkg, user, channel, modificationType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user