Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 237ebdf5 authored by Michael Jurka's avatar Michael Jurka Committed by Android Git Automerger
Browse files

am e6052518: am 652b7915: Merge "Improve swipe performance in Recents" into jb-mr2-dev

* commit 'e6052518':
  Improve swipe performance in Recents
parents 3f0bc9af e6052518
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -156,6 +156,12 @@ public class SwipeHelper implements Gefingerpoken {

    private void updateAlphaFromOffset(View animView, boolean dismissable) {
        if (FADE_OUT_DURING_SWIPE && dismissable) {
            float alpha = getAlphaForOffset(animView);
            if (alpha != 0f && alpha != 1f) {
                animView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
            } else {
                animView.setLayerType(View.LAYER_TYPE_NONE, null);
            }
            animView.setAlpha(getAlphaForOffset(animView));
        }
        invalidateGlobalRegion(animView);