Quick patch for PredictionUiStateManager.applyState interrupting allapps
Constructor of PredictionUiStateManager posts an action in 5 sec, which may interfere with the process of opening all apps. Waiting until the posted action happens. Hopefully this will fix massive flakes. Bug: 131854153 Change-Id: I6544eae1a3b063c03e78185826c05a76add1f71b
This commit is contained in:
1 parent
9fb137bb73
commit
0c1ed7cb4c
4 files changed
+12
No files matched your search
@@ -70,6 +70,9 @@ public class AppPredictionsUITests extends AbstractQuickStepTest {
|
||||
AppLaunchTracker.INSTANCE.initializeForTesting(new AppLaunchTracker());
|
||||
|
||||
PredictionUiStateManager.INSTANCE.initializeForTesting(null);
|
||||
waitForLauncherCondition("Prediction never had state update",
|
||||
launcher -> PredictionUiStateManager.INSTANCE.get(
|
||||
mTargetContext).mDebugHadStateUpdate);
|
||||
|
||||
mCallback = PredictionUiStateManager.INSTANCE.get(mTargetContext).appPredictorCallback(
|
||||
Client.HOME);
|
||||
|
||||
Reference in new issue
Block a user