OSDN Git Service

Fixed a bug where we weren't releasing views
authorSelim Cinek <cinek@google.com>
Wed, 23 Aug 2017 17:59:57 +0000 (10:59 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 24 Aug 2017 15:57:09 +0000 (15:57 +0000)
When tracking with the headsuptouchhelper, views
would not be released properly, since we're handing
over the touch to the panel.
This is now fixed.

Test: drag down on heads-up, observe normal motion
Change-Id: Ia9eef07c789d6d03098c2e34f86c16fdeeb93d42
Fixes: 37314754

packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpTouchHelper.java

index 82e6a35..c85571c 100644 (file)
@@ -111,6 +111,7 @@ public class HeadsUpTouchHelper implements Gefingerpoken {
                     // flicker of one frame as it's not expanded yet.
                     mHeadsUpManager.unpinAll();
                     mPanel.clearNotificationEffects();
+                    endMotion();
                     return true;
                 }
                 break;