Merge "Wait 100 ms for assistant response before posting."
This commit is contained in:
committed by
Android (Google) Code Review
commit
d791bbcf81
@@ -92,6 +92,7 @@ interface INotificationManager
|
||||
void setOnNotificationPostedTrimFromListener(in INotificationListener token, int trim);
|
||||
void setInterruptionFilter(String pkg, int interruptionFilter);
|
||||
|
||||
void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment);
|
||||
void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment);
|
||||
void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments);
|
||||
void createNotificationChannelFromAssistant(in INotificationListener token, String pkg, in NotificationChannel channel);
|
||||
|
||||
@@ -210,7 +210,14 @@ public abstract class NotificationAssistantService extends NotificationListenerS
|
||||
args.recycle();
|
||||
Adjustment adjustment = onNotificationEnqueued(sbn, importance, user);
|
||||
if (adjustment != null) {
|
||||
adjustNotification(adjustment);
|
||||
if (!isBound()) return;
|
||||
try {
|
||||
getNotificationInterface().applyEnqueuedAdjustmentFromAssistant(
|
||||
mWrapper, adjustment);
|
||||
} catch (android.os.RemoteException ex) {
|
||||
Log.v(TAG, "Unable to contact notification manager", ex);
|
||||
throw ex.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user