Cleanup code relating to recents carousel

We can delete a lot of code now  that recents isn't curved and
workspace doesn't offset.

Bug: 70179222
Change-Id: I01f7e3c313cdc370a8db5251a5d9fb406c1eb76c
This commit is contained in:
Tony
2018-03-09 20:55:51 +00:00
parent 59a38e6788
commit 5cd8ab938c
6 changed files with 16 additions and 190 deletions

View File

@@ -60,7 +60,6 @@ public class RecentsViewStateController implements StateHandler {
@Override
public void setState(LauncherState state) {
mWorkspaceCard.setWorkspaceScrollingEnabled(state.overviewUi);
setVisibility(state.overviewUi);
setTransitionProgress(state.overviewUi ? 1 : 0);
if (state.overviewUi) {
@@ -78,8 +77,6 @@ public class RecentsViewStateController implements StateHandler {
.getBoolean("pref_scroll_to_first_task_default_true", true);
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();
@@ -100,7 +97,6 @@ public class RecentsViewStateController implements StateHandler {
@Override
public void onAnimationSuccess(Animator animator) {
mWorkspaceCard.setWorkspaceScrollingEnabled(toState.overviewUi);
mRecentsView.setCurrentPage(mRecentsView.getPageNearestToCenterOfScreen());
}
});