Merge "Fix dark mode activity in incorrect stage exception"
This commit is contained in:
@@ -88,8 +88,7 @@ public class DarkThemeScheduleComponentTest {
|
|||||||
CommonUtils.reopenScreen();
|
CommonUtils.reopenScreen();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Recreate the scenario to make sure UI apply new mode.
|
// Relaunch the scenario to make sure UI apply new mode.
|
||||||
scenario.recreate();
|
|
||||||
scenario.onActivity(activity -> {
|
scenario.onActivity(activity -> {
|
||||||
Log.d(TAG, "Activity Recreated!");
|
Log.d(TAG, "Activity Recreated!");
|
||||||
UiUtils.waitForActivitiesInStage(2000, Stage.RESUMED);
|
UiUtils.waitForActivitiesInStage(2000, Stage.RESUMED);
|
||||||
|
|||||||
Reference in New Issue
Block a user