Make All Apps<-->Workspace transition smoother
- grouping workspace/all apps anims into one animator set, prevents blip when one of them ends early and its end anim handler does lots of work mid-animation - updating pivots for all apps zoom if layout changes - avoid running unnecessary animations on workspace pages - prevent unnecessary reloading of pages in All Apps Change-Id: I53a75f7c4c7d254057e2f8f4fd17711e8862256d
This commit is contained in:
@@ -1603,9 +1603,7 @@ public abstract class PagedView extends ViewGroup {
|
||||
// First, clear any pages that should no longer be loaded
|
||||
for (int i = 0; i < count; ++i) {
|
||||
Page layout = (Page) getPageAt(i);
|
||||
if ((immediateAndOnly && i != page) ||
|
||||
(i < lowerPageBound) ||
|
||||
(i > upperPageBound)) {
|
||||
if ((i < lowerPageBound) || (i > upperPageBound)) {
|
||||
if (layout.getPageChildCount() > 0) {
|
||||
layout.removeAllViewsOnPage();
|
||||
}
|
||||
@@ -1617,7 +1615,6 @@ public abstract class PagedView extends ViewGroup {
|
||||
if ((i != page) && immediateAndOnly) {
|
||||
continue;
|
||||
}
|
||||
Page layout = (Page) getPageAt(i);
|
||||
if (lowerPageBound <= i && i <= upperPageBound) {
|
||||
if (mDirtyPageContent.get(i)) {
|
||||
syncPageItems(i, (i == page) && immediateAndOnly);
|
||||
|
||||
Reference in New Issue
Block a user