From 5d9cc668e16abf1306d82218cd3da29e28a454ae Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Wed, 28 May 2014 17:08:13 +0200 Subject: Update HUN visuals to UX spec Adds gradient, fixes wrong padding on tablets and adds a callback mode to swipe helper. Bug: 15106201 Change-Id: I9c3f2d24665cb3de8e70904893f56c928b0caabb --- .../src/com/android/systemui/recent/RecentsVerticalScrollView.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java') diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java index c2dde6a..1213375 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java @@ -65,7 +65,7 @@ public class RecentsVerticalScrollView extends ScrollView } public void setMinSwipeAlpha(float minAlpha) { - mSwipeHelper.setMinAlpha(minAlpha); + mSwipeHelper.setMinSwipeProgress(minAlpha); } private int scrollPositionOfMostRecent() { @@ -229,6 +229,11 @@ public class RecentsVerticalScrollView extends ScrollView public void onChildSnappedBack(View animView) { } + @Override + public boolean updateSwipeProgress(View animView, boolean dismissable, float swipeProgress) { + return false; + } + public View getChildAtPosition(MotionEvent ev) { final float x = ev.getX() + getScrollX(); final float y = ev.getY() + getScrollY(); -- cgit v1.1