Merge "Activity gain focus failed in InputMethodStressTest" am: 7f5baabe2a am: 2fad378d72 am: 16a324ff03 am: f98575cb67 am: 222d4ea95f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2194375

Change-Id: I9665a4987c24ec52c74c9a5e2e0848e0f2915361
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java b/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java
index 47f87d6..573b3b69 100644
--- a/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java
+++ b/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/NotificationTest.java
@@ -102,6 +102,7 @@
     @After
     public void tearDown() {
         mNotificationManager.cancelAll();
+        mUiDevice.pressHome();
     }
 
     @Test