OSDN Git Service

Don't move clock when warping in PagedView
authorJim Miller <jaggies@google.com>
Mon, 14 Oct 2013 02:35:47 +0000 (19:35 -0700)
committerJim Miller <jaggies@google.com>
Mon, 14 Oct 2013 23:09:50 +0000 (16:09 -0700)
commit1c058a68e9d2831ac4c607916dca3494b9fbd911
treeb086c0973dd35f3a573aef44eecaca9a2accf26f
parent1680cfd803d6a435ce4c809075d052da2723ac07
Don't move clock when warping in PagedView

This fixes a bug where the clock would appear to move when flinging
the camera widget while warping.  To accomplish this,  it no longer
scrolls while warping but rather updates the warp view's translationX.
When the finger is released or a fling happens, we either smoothly
animate the view back (without scrolling) or update the scroll position
and let the scroller take over the animation.

Fixes bug 11191094

Change-Id: I33f087cf4fb2ec31db11d69d11055b513604b1d1
packages/Keyguard/src/com/android/keyguard/PagedView.java