Fix dark mode activity in incorrect stage exception
Bug: 192342363 Test: atest com.android.settings.display.darkmode.DarkThemeScheduleComponentTest Change-Id: Iaa368cbd7c7d9d9b111965e38e5a6ec480db2663
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