Give a chance to update the value in EventCallback
BUG:205082573
Test command:
run cts -m CtsAppTestCases -t
android.app.cts.NotificationManagerTest#testActivityStartFromRetrievedNotification_isBlocked
Change-Id: Ibc59bbcdf8d3929f6b9fb146e03f7e298ad1ed18
diff --git a/tests/app/src/android/app/cts/NotificationManagerTest.java b/tests/app/src/android/app/cts/NotificationManagerTest.java
old mode 100644
new mode 100755
index 67ac550..f91cdf6a5
--- a/tests/app/src/android/app/cts/NotificationManagerTest.java
+++ b/tests/app/src/android/app/cts/NotificationManagerTest.java
@@ -4467,7 +4467,7 @@
@Override
public void handleMessage(Message message) {
- mEvents.computeIfAbsent(message.what, e -> new CompletableFuture<>()).complete(
+ mEvents.computeIfAbsent(message.what, e -> new CompletableFuture<>()).obtrudeValue(
message.arg1);
}