Make adjustNotification working no matter the notification is just
enqueued or already posted BUG: 129042820 Test: atest frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/ Change-Id: I5df96b0e971e9b037b3efa9204c3fad3bfcf1081
This commit is contained in:
@@ -234,7 +234,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS
|
||||
public final void adjustNotification(@NonNull Adjustment adjustment) {
|
||||
if (!isBound()) return;
|
||||
try {
|
||||
getNotificationInterface().applyAdjustmentFromAssistant(mWrapper, adjustment);
|
||||
getNotificationInterface().applyEnqueuedAdjustmentFromAssistant(mWrapper, adjustment);
|
||||
} catch (android.os.RemoteException ex) {
|
||||
Log.v(TAG, "Unable to contact notification manager", ex);
|
||||
throw ex.rethrowFromSystemServer();
|
||||
|
||||
Reference in New Issue
Block a user