summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2014-05-28 17:08:13 +0200
committerJorim Jaggi <jjaggi@google.com>2014-05-31 13:43:44 +0200
commit5d9cc668e16abf1306d82218cd3da29e28a454ae (patch)
treefef183332c6158b84e7e384734d4ed708d3cbe3f /packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java
parente29b2dbc762bfa66093d76f5a65f55328d8753c9 (diff)
downloadframeworks_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.java7
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();