Merge "Don't show a blue glow when swiping recents" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d6be37d4d9
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user