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

am: 234fc60302

Change-Id: I4f5a9e0ba1b4a31478e54bb6cce5884e017bd99c
This commit is contained in:
Sunny Goyal
2019-06-19 11:45:02 -07:00
committed by android-build-merger
@@ -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);
}
}
}