diff options
author | Adrian Roos <roosa@google.com> | 2014-05-28 17:08:13 +0200 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2014-05-31 13:43:44 +0200 |
commit | 5d9cc668e16abf1306d82218cd3da29e28a454ae (patch) | |
tree | fef183332c6158b84e7e384734d4ed708d3cbe3f /packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java | |
parent | e29b2dbc762bfa66093d76f5a65f55328d8753c9 (diff) | |
download | frameworks_base-5d9cc668e16abf1306d82218cd3da29e28a454ae.zip frameworks_base-5d9cc668e16abf1306d82218cd3da29e28a454ae.tar.gz frameworks_base-5d9cc668e16abf1306d82218cd3da29e28a454ae.tar.bz2 |
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
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |