Adding support for skipping animation cancel on reapply

Bug: 314279319
Test: Verified on device
Flag: None
Change-Id: I0a6e9eef77a1d917c0fce7d4bddd079ceeb10c99
This commit is contained in:
Sunny Goyal committed 2024-01-09 10:35:43 -08:00
1 parent 8d42081b23
commit 98b5e1f077
7 files changed
+63 -34

No files matched your search

@@ -126,16 +126,8 @@ public abstract class StatefulActivity<STATE_TYPE extends BaseState<STATE_TYPE>>
@Override
public void reapplyUi() {
reapplyUi(true /* cancelCurrentAnimation */);
}
/**
* Re-applies if any state transition is not running, optionally cancelling
* the transition if requested.
*/
public void reapplyUi(boolean cancelCurrentAnimation) {
getRootView().dispatchInsets();
getStateManager().reapplyState(cancelCurrentAnimation);
getStateManager().reapplyState(true /* cancelCurrentAnimation */);
}
@Override