OSDN Git Service

Fix pinch out gesture for film strip mode on gingerbread.
authorHung-ying Tyan <tyanh@google.com>
Wed, 29 Aug 2012 06:15:32 +0000 (14:15 +0800)
committerHung-ying Tyan <tyanh@google.com>
Wed, 29 Aug 2012 08:33:08 +0000 (16:33 +0800)
commit4d47b3472cccf84e8c71d8fb389a79bc83b321ee
tree6c422a03299bc9ee7c59db1af2b42d64dfe8e806
parente883ea20addbecccca565606808398233deb03d3
Fix pinch out gesture for film strip mode on gingerbread.

On crespo running Android 2.3.6, a pinch out gesture results in the following
call sequence: onDown(), onUp() and then onSingleTapUp(). The correct sequence
for a single-tap-up gesture should be: onDown(), onSingleTapUp() and onUp().
The call sequence for a pinch out gesture in JB is: onDown() and then onUp().
Base on these observations, a condition is added in onSingleTapUp() to filter
out the false alarm where onSingleTapUp() is called within a pinch out gesture.

Bug: 7023717
Change-Id: I010b87f95c3197a299a7d907ce32e93a1d5e958f
src/com/android/gallery3d/ui/PhotoView.java