diff options
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewCellLayout.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java index d7f8784a5..9c37c019f 100644 --- a/src/com/android/launcher2/PagedViewCellLayout.java +++ b/src/com/android/launcher2/PagedViewCellLayout.java @@ -104,8 +104,8 @@ public class PagedViewCellLayout extends ViewGroup implements Page { @Override public void setAlpha(float alpha) { - mChildren.setAlpha(alpha); - mHolographicChildren.setAlpha(1.0f - alpha); + mChildren.setAlpha(HolographicOutlineHelper.viewAlphaInterpolator(alpha)); + mHolographicChildren.setAlpha(HolographicOutlineHelper.highlightAlphaInterpolator(alpha)); } void destroyHardwareLayers() { @@ -138,15 +138,6 @@ public class PagedViewCellLayout extends ViewGroup implements Page { } } - /** Syncs the holographic icon views to the child icon views */ - public void reloadHolographicIcons(boolean createHolographicOutlines) { - if (createHolographicOutlines) { - mChildren.loadHolographicOutlines(); - } else { - mChildren.clearHolographicOutlines(); - } - } - public boolean addViewToCellLayout(View child, int index, int childId, PagedViewCellLayout.LayoutParams params) { final PagedViewCellLayout.LayoutParams lp = params; |