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

Commit 890c9fe0 authored by Michael Jurka's avatar Michael Jurka
Browse files

Don't show a blue glow when swiping recents

Bug: 5908113
parent 1fa1de52
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -16,6 +16,5 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/recents_thumbnail_bg_press" android:state_selected="true" />
    <item android:drawable="@drawable/recents_thumbnail_bg_press" android:state_pressed="true" />
    <item android:drawable="@drawable/recents_thumbnail_bg_dragging" android:state_activated="true" />
    <item android:drawable="@*android:color/transparent"/>
</selector>
+0 −3
Original line number Diff line number Diff line
@@ -184,7 +184,6 @@ public class RecentsHorizontalScrollView extends HorizontalScrollView
        mRecycledViews.add(v);
        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);
@@ -196,11 +195,9 @@ public class RecentsHorizontalScrollView extends HorizontalScrollView
        // We do this so the underlying ScrollView knows that it won't get
        // the chance to intercept events anymore
        requestDisallowInterceptTouchEvent(true);
        v.setActivated(true);
    }

    public void onDragCancelled(View v) {
        v.setActivated(false);
    }

    public View getChildAtPosition(MotionEvent ev) {
+0 −3
Original line number Diff line number Diff line
@@ -191,7 +191,6 @@ public class RecentsVerticalScrollView extends ScrollView
        mRecycledViews.add(v);
        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);
@@ -203,11 +202,9 @@ public class RecentsVerticalScrollView extends ScrollView
        // We do this so the underlying ScrollView knows that it won't get
        // the chance to intercept events anymore
        requestDisallowInterceptTouchEvent(true);
        v.setActivated(true);
    }

    public void onDragCancelled(View v) {
        v.setActivated(false);
    }

    public View getChildAtPosition(MotionEvent ev) {