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

Commit 2db72fce authored by Michael Jurka's avatar Michael Jurka
Browse files

Fix blip after notifications are swiped

Bug #6035662

Change-Id: I7f0274c9011247d0fd5ef09a05b7630eda0ca77f
parent b442eca2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -236,10 +236,6 @@ public class SwipeHelper {
            public void onAnimationEnd(Animator animation) {
                mCallback.onChildDismissed(view);
                animView.setLayerType(View.LAYER_TYPE_NONE, null);
                // Restore the alpha/translation parameters to what they were before swiping
                // (for when these items are recycled)
                animView.setAlpha(1f);
                setTranslation(animView, 0f);
            }
        });
        anim.addUpdateListener(new AnimatorUpdateListener() {
+5 −0
Original line number Diff line number Diff line
@@ -181,6 +181,11 @@ public class RecentsHorizontalScrollView extends HorizontalScrollView
        mLinearLayout.removeView(v);
        mCallback.handleSwipe(v);
        v.setActivated(false);
        // Restore the alpha/translation parameters to what they were before swiping
        // (for when these items are recycled)
        View contentView = getChildContentView(v);
        contentView.setAlpha(1f);
        contentView.setTranslationY(0);
    }

    public void onBeginDrag(View v) {
+5 −0
Original line number Diff line number Diff line
@@ -187,6 +187,11 @@ public class RecentsVerticalScrollView extends ScrollView implements SwipeHelper
        mLinearLayout.removeView(v);
        mCallback.handleSwipe(v);
        v.setActivated(false);
        // Restore the alpha/translation parameters to what they were before swiping
        // (for when these items are recycled)
        View contentView = getChildContentView(v);
        contentView.setAlpha(1f);
        contentView.setTranslationX(0);
    }

    public void onBeginDrag(View v) {