Merge "Small optimizations for the All Apps transition"

This commit is contained in:
Michael Jurka authored and Android (Google) Code Review committed 2011-12-15 13:42:02 -08:00
commit 58e8b25c59
3 files changed
+15 -10

No files matched your search

+4 -1
View File
@@ -1726,6 +1726,9 @@ public class Workspace extends SmoothPagedView
cl.setBackgroundAlphaMultiplier(a * mOldBackgroundAlphaMultipliers[i] +
b * mNewBackgroundAlphaMultipliers[i]);
cl.setFastAlpha(a * mOldAlphas[i] + b * mNewAlphas[i]);
if (mOldAlphas[i] != mNewAlphas[i]) {
cl.setAlpha(a * mOldAlphas[i] + b * mNewAlphas[i]);
}
}
}
syncChildrenLayersEnabledOnVisiblePages();
@@ -3520,7 +3523,7 @@ public class Workspace extends SmoothPagedView
final ViewGroup parent = (ViewGroup) getParent();
final ImageView qsbDivider = (ImageView) (parent.findViewById(R.id.qsb_divider));
final ImageView dockDivider = (ImageView) (parent.findViewById(R.id.dock_divider));
final ImageView scrollIndicator = getScrollingIndicator();
final View scrollIndicator = getScrollingIndicator();
cancelScrollingIndicatorAnimations();
if (qsbDivider != null) qsbDivider.setAlpha(reducedFade);