Speeding up AllApps click feedback
Change-Id: Ia16845b16d369bea610bb908d9a9f4805d4a1d54
This commit is contained in:
@@ -997,19 +997,6 @@ public abstract class PagedView extends ViewGroup {
|
||||
return mTouchState != TOUCH_STATE_REST;
|
||||
}
|
||||
|
||||
protected void animateClickFeedback(View v, final Runnable r) {
|
||||
// animate the view slightly to show click feedback running some logic after it is "pressed"
|
||||
ObjectAnimator anim = (ObjectAnimator) AnimatorInflater.
|
||||
loadAnimator(mContext, R.anim.paged_view_click_feedback);
|
||||
anim.setTarget(v);
|
||||
anim.addListener(new AnimatorListenerAdapter() {
|
||||
public void onAnimationRepeat(Animator animation) {
|
||||
r.run();
|
||||
}
|
||||
});
|
||||
anim.start();
|
||||
}
|
||||
|
||||
protected void determineScrollingStart(MotionEvent ev) {
|
||||
determineScrollingStart(ev, 1.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user