OSDN Git Service

Fix DismissView cannot be clicked sometimes after boot
authorDong-wan Kim <dongwan0605.kim@lge.com>
Wed, 21 Sep 2016 20:08:30 +0000 (13:08 -0700)
committerSelim Cinek <cinek@google.com>
Fri, 23 Sep 2016 20:07:25 +0000 (13:07 -0700)
commitb926666a76d25b7d1b693025ffa7e0118fad547e
tree0b766678f8584a42ac2b71c73dc6973a0f5fcccc
parentdd8611fc5a374220b3c2b07814dd072d3fe73cca
Fix DismissView cannot be clicked sometimes after boot

mActivePointerId should be initialized to INVALID_POINTER.
Otherwise, the click event to DismissView can be intercepted by
onInterceptTouchEventScroll() due to wrong calculated value of yDiff
when mActivePointerId is not intialized.

This issue can be reproduced at the first click to DismissView while
user have not touched any notification views ever after boot.
And that click event must contains some MOVE events.

Test: manual - Check whether user always can click DismissView
               after boot.
Fixes: 31649735
Change-Id: If9baf6db1b891a58e17153806d52d395ddd661df
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java