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:
1 parent
7fe4f8ba0a
commit
b64d36e6f8
4 files changed
+13
-8
No files matched your search
@@ -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