Merge "Fix NotificationManagerTest.checkNotificationExistence" into marshmallow-cts-dev am: 963acab06f am: 5ca2d83f1b
am: 811f828e70

* commit '811f828e70da37f92075413f1a1c6755bf95dcd0':
  Fix NotificationManagerTest.checkNotificationExistence
diff --git a/tests/tests/app/src/android/app/cts/NotificationManagerTest.java b/tests/tests/app/src/android/app/cts/NotificationManagerTest.java
index fbb3060..c5a41c3 100644
--- a/tests/tests/app/src/android/app/cts/NotificationManagerTest.java
+++ b/tests/tests/app/src/android/app/cts/NotificationManagerTest.java
@@ -126,6 +126,8 @@
         // we will check for it for up to 200ms before giving up
         boolean found = false;
         for (int tries=3; tries-->0;) {
+            // Need reset flag.
+            found = false;
             final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications();
             for (StatusBarNotification sbn : sbns) {
                 if (sbn.getId() == id) {