Reset state after split launch animation finishes

Previously we were clearing SplitSelectStateController
state too soon for fake landscape case where
as soon as the tasks launch the device does a rotation
animation since the new split tasks are in landscape.
Move restting state after animation finishes.

Fixes: 201980666

Change-Id: I23efd59fad444c47ae6c2048888a8570f22610fd
This commit is contained in:
Vinit Nayak
2021-10-05 15:11:51 -07:00
parent fd326d1a53
commit 0516737146
2 changed files with 7 additions and 8 deletions
@@ -163,10 +163,8 @@ public class SplitSelectStateController {
if (mSuccessCallback != null) {
mSuccessCallback.accept(true);
}
resetState();
}));
// After successful launch, call resetState
resetState();
}
@Override
@@ -175,9 +173,8 @@ public class SplitSelectStateController {
if (mSuccessCallback != null) {
mSuccessCallback.accept(false);
}
resetState();
});
resetState();
}
}