diff options
author | Eric Erfanian <erfanian@google.com> | 2017-03-24 09:31:16 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-03-27 08:56:19 -0700 |
commit | 9050823ccf6f512e06ad65c8a741cb17cbc4a833 (patch) | |
tree | e454c9e0fa20b8384fa87d4e6309bb8b9e3aa2a4 /java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java | |
parent | dd9d50805f1b49dff1fe3787740393d726124cdb (diff) |
Update AOSP Dialer source from internal google3 repository at
cl/151128062
Test: make, treehugger
This CL updates the AOSP Dialer source with all the changes that have
gone into the private google3 repository. This includes all the
changes from cl/150756069 (3/21/2017) to cl/151128062 (3/24/2017).
Notable this release:
- Explicitly enumerate host and target dependencies.
- Update proguard flag references.
This goal of these drops is to keep the AOSP source in sync with the
internal google3 repository. Currently these sync are done by hand
with very minor modifications to the internal source code.
See the Android.mk file for list of modifications.
Our current goal is to do frequent drops (daily if possible) and
eventually switched to an automated process.
Bug: 33210202 36511925
Addresses
33210202 - Proguard support
36511925 - Compiler warnings when building against platform sdk
Change-Id: I448ec3b3f2358886859cf7a4ef76a8fcef3244ae
Diffstat (limited to 'java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java')
-rw-r--r-- | java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java b/java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java index ff20d3a05..1c66e63b8 100644 --- a/java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java +++ b/java/com/android/incallui/answer/impl/affordance/SwipeButtonHelper.java @@ -68,13 +68,19 @@ public class SwipeButtonHelper { targetedView = null; } }; - private Runnable animationEndRunnable = - new Runnable() { - @Override - public void run() { - callback.onAnimationToSideEnded(); - } - }; + + private class AnimationEndRunnable implements Runnable { + private final boolean rightPage; + + public AnimationEndRunnable(boolean rightPage) { + this.rightPage = rightPage; + } + + @Override + public void run() { + callback.onAnimationToSideEnded(rightPage); + } + }; public SwipeButtonHelper(Callback callback, Context context) { this.context = context; @@ -386,7 +392,7 @@ public class SwipeButtonHelper { }); animator.addListener(flingEndListener); if (!snapBack) { - startFinishingCircleAnimation(vel * 0.375f, animationEndRunnable, right); + startFinishingCircleAnimation(vel * 0.375f, new AnimationEndRunnable(right), right); callback.onAnimationToSideStarted(right, translation, vel); } else { reset(true); @@ -599,7 +605,7 @@ public class SwipeButtonHelper { updateIcon(otherView, 0.0f, 0.0f, false, false, true, false); targetView.instantFinishAnimation(); flingEndListener.onAnimationEnd(null); - animationEndRunnable.run(); + new AnimationEndRunnable(!left).run(); } } @@ -614,7 +620,7 @@ public class SwipeButtonHelper { void onAnimationToSideStarted(boolean rightPage, float translation, float vel); /** Notifies the callback the animation to a side page has ended. */ - void onAnimationToSideEnded(); + void onAnimationToSideEnded(boolean rightPage); float getMaxTranslationDistance(); |