Fixing stutter in AllApps transition
-> Tightened up the interpolator and decreased the duration of the AllApps-in animation. This removes many excess frames at the end of the transition, and frees up perf for swiping AllApps: (issue 5359751) -> Changed when AllApps state gets reset -- now only after leaving home, and then pressing home, or when the screen turns off. Change-Id: I76e988102da91c12cb52af01468cf9a81fe45545
This commit is contained in:
@@ -1360,8 +1360,14 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
updateCurrentTab(0);
|
||||
invalidatePageData(0);
|
||||
AppsCustomizeTabHost tabHost = getTabHost();
|
||||
String tag = tabHost.getCurrentTabTag();
|
||||
if (!tag.equals(tabHost.getTabTagForContentType(ContentType.Applications))) {
|
||||
tabHost.setCurrentTabFromContent(ContentType.Applications);
|
||||
}
|
||||
if (mCurrentPage != 0) {
|
||||
invalidatePageData(0);
|
||||
}
|
||||
}
|
||||
|
||||
private AppsCustomizeTabHost getTabHost() {
|
||||
|
||||
Reference in New Issue
Block a user