Fixing workspace card shifted when going to home.
When animating the wrospace, we skip the properties if for start and end are same. But after creating the animation, if the property changes, the final property is never applied. Bug: 72257542 Change-Id: Id408c7820476273958e835ae99a3a934ad5a4700
This commit is contained in:
1 parent
05a31ede4f
commit
72289860ee
1 file changed
+2
-5
@@ -71,6 +71,8 @@ public class RecentsViewStateController implements StateHandler {
|
||||
.getBoolean("pref_scroll_to_first_task", false);
|
||||
mIsRecentsScrollingToFirstTask = mLauncher.isInState(NORMAL) && toState == OVERVIEW
|
||||
&& settingEnabled;
|
||||
// TODO: Instead of animating the workspace translationX, move the contents
|
||||
mWorkspaceCard.setWorkspaceScrollingEnabled(mIsRecentsScrollingToFirstTask);
|
||||
|
||||
// Scroll to the workspace card before changing to the NORMAL state.
|
||||
int currPage = mRecentsView.getCurrentPage();
|
||||
@@ -88,11 +90,6 @@ public class RecentsViewStateController implements StateHandler {
|
||||
progressAnim.setInterpolator(Interpolators.LINEAR);
|
||||
progressAnim.addListener(new AnimationSuccessListener() {
|
||||
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
mWorkspaceCard.setWorkspaceScrollingEnabled(mIsRecentsScrollingToFirstTask);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationSuccess(Animator animator) {
|
||||
mWorkspaceCard.setWorkspaceScrollingEnabled(toState == OVERVIEW);
|
||||
|
||||
Reference in new issue
Block a user