Exposing the state manager directly instead of providing various helper methods for state change

Bug: 67678570
Change-Id: If3d05c804c034ffa5e403da8eaa23e85e373c863
This commit is contained in:
Sunny Goyal
2017-10-23 17:14:52 -07:00
parent 4d519f2568
commit 3e3f44c3ad
16 changed files with 184 additions and 228 deletions

View File

@@ -16,7 +16,7 @@
package com.android.launcher3;
import static com.android.launcher3.LauncherAnimUtils.SPRING_LOADED_EXIT_NEXT_FRAME;
import static com.android.launcher3.LauncherState.NORMAL;
import android.animation.AnimatorSet;
import android.animation.FloatArrayEvaluator;
@@ -231,7 +231,7 @@ public abstract class ButtonDropTarget extends TextView
public void run() {
completeDrop(d);
mDropTargetBar.onDragEnd();
mLauncher.exitSpringLoadedDragMode(SPRING_LOADED_EXIT_NEXT_FRAME);
mLauncher.getStateManager().goToState(NORMAL);
}
};
dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f,