Removing view layer support during state animation.
View layer was only being used when fading in/out hotseat in overview. From API 21+, android automatically create layers when animating alpha The current support for view layers does not work properly when cancelling animations and controlling partial animations Change-Id: I2d5785471af9819575beefe65f1f2bdd28c76bd5
This commit is contained in:
@@ -18,7 +18,6 @@ import com.android.launcher3.LauncherStateManager.AnimationConfig;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.Workspace;
|
||||
import com.android.launcher3.anim.AnimationLayerSet;
|
||||
import com.android.launcher3.anim.AnimationSuccessListener;
|
||||
import com.android.launcher3.anim.AnimatorSetBuilder;
|
||||
import com.android.launcher3.anim.Interpolators;
|
||||
@@ -122,7 +121,7 @@ public class AllAppsTransitionController
|
||||
* @param progress value between 0 and 1, 0 shows all apps and 1 shows workspace
|
||||
*
|
||||
* @see #setState(LauncherState)
|
||||
* @see #setStateWithAnimation(LauncherState, AnimationLayerSet, AnimatorSetBuilder, AnimationConfig)
|
||||
* @see #setStateWithAnimation(LauncherState, AnimatorSetBuilder, AnimationConfig)
|
||||
*/
|
||||
public void setProgress(float progress) {
|
||||
mProgress = progress;
|
||||
@@ -167,7 +166,7 @@ public class AllAppsTransitionController
|
||||
* dependent UI using various animation events
|
||||
*/
|
||||
@Override
|
||||
public void setStateWithAnimation(LauncherState toState, AnimationLayerSet layerViews,
|
||||
public void setStateWithAnimation(LauncherState toState,
|
||||
AnimatorSetBuilder builder, AnimationConfig config) {
|
||||
if (Float.compare(mProgress, toState.verticalProgress) == 0) {
|
||||
// Fail fast
|
||||
|
||||
Reference in New Issue
Block a user