Merge "Fixing onStateTransitionEnd is not called at the end of reset state" into ub-launcher3-qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-19 18:25:12 +00:00
committed by Android (Google) Code Review
@@ -223,6 +223,7 @@ public class LauncherStateManager {
}
public void reapplyState(boolean cancelCurrentAnimation) {
boolean wasInAnimation = mConfig.mCurrentAnimation != null;
if (cancelCurrentAnimation) {
cancelAnimation();
}
@@ -230,6 +231,9 @@ public class LauncherStateManager {
for (StateHandler handler : getStateHandlers()) {
handler.setState(mState);
}
if (wasInAnimation) {
onStateTransitionEnd(mState);
}
}
}