mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixes a bug where the workspace doesn't properly enter into freescroll mode
hence the overscroll will appear and you can wrongly enter into the -1 screen. The problem was that the state value in the workspace was set after enabling free scroll, but enabling free scroll checks the current state for validation. This bug was introduced by Icc3005fd431569e2b9e3f52d2249de8ba8d13eab. Bug: 34817798 Change-Id: I46802c93c49a2ae8ee5c40ef24e465d7fe63c4bb
This commit is contained in:
@@ -2042,14 +2042,18 @@ public class Workspace extends PagedView
|
||||
*/
|
||||
public Animator setStateWithAnimation(State toState, boolean animated,
|
||||
AnimationLayerSet layerViews) {
|
||||
// Create the animation to the new state
|
||||
AnimatorSet workspaceAnim = mStateTransitionAnimation.getAnimationToState(mState,
|
||||
toState, animated, layerViews);
|
||||
final State fromState = mState;
|
||||
|
||||
boolean shouldNotifyWidgetChange = !mState.shouldUpdateWidget
|
||||
&& toState.shouldUpdateWidget;
|
||||
// Update the current state
|
||||
mState = toState;
|
||||
|
||||
// Create the animation to the new state
|
||||
AnimatorSet workspaceAnim = mStateTransitionAnimation.getAnimationToState(fromState,
|
||||
toState, animated, layerViews);
|
||||
|
||||
boolean shouldNotifyWidgetChange = !fromState.shouldUpdateWidget
|
||||
&& toState.shouldUpdateWidget;
|
||||
|
||||
updateAccessibilityFlags();
|
||||
|
||||
if (shouldNotifyWidgetChange) {
|
||||
|
||||
Reference in New Issue
Block a user