Fix flaky test for persistent notifications
Persistent notifications test sometimes fails due to setup activity doesn't exit due to failed intent. Adding setup exit command when on device tests are starting and adding timeout for transition. Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk Flag: EXEMPT bugfix Bug: 349820489 Change-Id: Iaf1c1f481612367bbce919b27e89f88a24abb582
This commit is contained in:
@@ -134,6 +134,6 @@ public class PageAgnosticNotificationService extends Service {
|
||||
|
||||
// No updates should be allowed in page-agnostic mode
|
||||
disableAutomaticUpdates();
|
||||
return Service.START_NOT_STICKY;
|
||||
return Service.START_REDELIVER_INTENT;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user