Merge "Fix dark mode activity in incorrect stage exception"

This commit is contained in:
Syaoran Kuo
2021-07-01 03:10:38 +00:00
committed by Android (Google) Code Review

View File

@@ -88,8 +88,7 @@ public class DarkThemeScheduleComponentTest {
CommonUtils.reopenScreen();
});
// Recreate the scenario to make sure UI apply new mode.
scenario.recreate();
// Relaunch the scenario to make sure UI apply new mode.
scenario.onActivity(activity -> {
Log.d(TAG, "Activity Recreated!");
UiUtils.waitForActivitiesInStage(2000, Stage.RESUMED);