diff options
Diffstat (limited to 'src/com/android')
| -rw-r--r-- | src/com/android/launcher3/Workspace.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 72dff6686..d2008a6a6 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -2042,14 +2042,18 @@ public class Workspace extends PagedView */ public Animator setStateWithAnimation(State toState, boolean animated, AnimationLayerSet layerViews) { + final State fromState = mState; + + // Update the current state + mState = toState; + // Create the animation to the new state - AnimatorSet workspaceAnim = mStateTransitionAnimation.getAnimationToState(mState, + AnimatorSet workspaceAnim = mStateTransitionAnimation.getAnimationToState(fromState, toState, animated, layerViews); - boolean shouldNotifyWidgetChange = !mState.shouldUpdateWidget + boolean shouldNotifyWidgetChange = !fromState.shouldUpdateWidget && toState.shouldUpdateWidget; - // Update the current state - mState = toState; + updateAccessibilityFlags(); if (shouldNotifyWidgetChange) { |
