Speed up All Apps -> Workspace transition
- use HW layers on Views whose alpha is faded - don't run animation end code until the entire launcher transition is finished - be more aggressive about making workspace pages visible after an animation, potential fix for Bug #5867739 Change-Id: I52a088e551c1636a67725629640286b885070f32
This commit is contained in:
@@ -1682,6 +1682,7 @@ public abstract class PagedView extends ViewGroup {
|
||||
if (mHasScrollIndicator && mScrollIndicator == null) {
|
||||
ViewGroup parent = (ViewGroup) getParent();
|
||||
mScrollIndicator = (View) (parent.findViewById(R.id.paged_view_indicator));
|
||||
mScrollIndicator.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||
mHasScrollIndicator = mScrollIndicator != null;
|
||||
if (mHasScrollIndicator) {
|
||||
mScrollIndicator.setVisibility(View.VISIBLE);
|
||||
@@ -1807,7 +1808,6 @@ public abstract class PagedView extends ViewGroup {
|
||||
indicatorPos += indicatorCenterOffset;
|
||||
}
|
||||
mScrollIndicator.setTranslationX(indicatorPos);
|
||||
mScrollIndicator.invalidate();
|
||||
}
|
||||
|
||||
public void showScrollIndicatorTrack() {
|
||||
|
||||
Reference in New Issue
Block a user