Loading services/core/java/com/android/server/notification/NotificationManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -2823,7 +2823,7 @@ public class NotificationManagerService extends SystemService { public void setNotificationListenerAccessGrantedForUser(ComponentName listener, int userId, boolean granted) throws RemoteException { Preconditions.checkNotNull(listener); enforceSystemOrSystemUI("grant notification listener access"); checkCallerIsSystemOrShell(); if (!mActivityManager.isLowRamDevice()) { mConditionProviders.setPackageOrComponentEnabled(listener.flattenToString(), userId, false, granted); Loading @@ -2844,7 +2844,7 @@ public class NotificationManagerService extends SystemService { public void setNotificationAssistantAccessGrantedForUser(ComponentName assistant, int userId, boolean granted) throws RemoteException { Preconditions.checkNotNull(assistant); enforceSystemOrSystemUI("grant notification assistant access"); checkCallerIsSystemOrShell(); if (!mActivityManager.isLowRamDevice()) { mConditionProviders.setPackageOrComponentEnabled(assistant.flattenToString(), userId, false, granted); Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -2823,7 +2823,7 @@ public class NotificationManagerService extends SystemService { public void setNotificationListenerAccessGrantedForUser(ComponentName listener, int userId, boolean granted) throws RemoteException { Preconditions.checkNotNull(listener); enforceSystemOrSystemUI("grant notification listener access"); checkCallerIsSystemOrShell(); if (!mActivityManager.isLowRamDevice()) { mConditionProviders.setPackageOrComponentEnabled(listener.flattenToString(), userId, false, granted); Loading @@ -2844,7 +2844,7 @@ public class NotificationManagerService extends SystemService { public void setNotificationAssistantAccessGrantedForUser(ComponentName assistant, int userId, boolean granted) throws RemoteException { Preconditions.checkNotNull(assistant); enforceSystemOrSystemUI("grant notification assistant access"); checkCallerIsSystemOrShell(); if (!mActivityManager.isLowRamDevice()) { mConditionProviders.setPackageOrComponentEnabled(assistant.flattenToString(), userId, false, granted); Loading