OSDN Git Service

Fix PiP dismissing on drag away from bottom and then fling
authorMady Mellor <madym@google.com>
Wed, 22 Mar 2017 00:45:00 +0000 (17:45 -0700)
committerMady Mellor <madym@google.com>
Mon, 27 Mar 2017 17:07:49 +0000 (10:07 -0700)
commit2fbdd3bfde12c6755e184208730cfb76e3066741
treef35373f9122cb5c5634b612fd097434396987454
parente784f7a0a34789047a4db037ee28ee00ef06e990
Fix PiP dismissing on drag away from bottom and then fling

Adds two flags to watch for movement outside of the starting area of the
gesture, one for dismissing and one for minimizing.

Test: - Have PiP at bottom of screen, drag to top and fling down (does not
        dismiss)
      - Have PiP at left or right edge of screen, drag PiP to opposite
        edge and fling to other side (no longer minimizes)
Bug: 35358628

Change-Id: I007e2c2c688254dbe1abaecdedc28e281278def8
packages/SystemUI/src/com/android/systemui/pip/phone/PipTouchHandler.java