am 0e9ce42a: Merge "Half of CTS AccessibilityEvent test fix for Wear. Wear does not alert for notifications if another activity is in the foreground. This finish()es the test activity after sending the notification, so Wear\'s Home can alert, triggering the Accessibili

* commit '0e9ce42aa5ae17aeba410d53212015974c51e0ab':
  Half of CTS AccessibilityEvent test fix for Wear. Wear does not alert for notifications if another activity is in the foreground. This finish()es the test activity after sending the notification, so Wear's Home can alert, triggering the AccessibilityEvent the test is waiting for. Bug: 18411085
diff --git a/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java b/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
index 39b116a..b11248a 100644
--- a/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
+++ b/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/AccessibilityEndToEndTest.java
@@ -342,6 +342,7 @@
                             (NotificationManager) getActivity().getSystemService(
                                     Service.NOTIFICATION_SERVICE);
                         notificationManager.notify(notificationId, notification);
+                        getActivity().finish();
                     }
                 });
             }},