OSDN Git Service

Correct pointer position
authorLyn Han <lynhan@google.com>
Thu, 16 May 2019 21:17:30 +0000 (14:17 -0700)
committerLyn Han <lynhan@google.com>
Fri, 17 May 2019 18:35:51 +0000 (11:35 -0700)
commit6f6b3ae3f3475210baff8d0d50f7ead1421b067d
tree0eaecc53c37e20227963a36b31ad48faea1cafa1
parentaa6965983b5915b7eb3ceac572e564ac49a8ff5b
Correct pointer position

Pointer pointed to the right of bubble center. This happened because:
- Bubbles live in expanded view container (x includes expanded view padding)
- Pointer lives in expanded view, which has padding (x does not include padding)

This change removes expanded view padding when deriving pointer location from bubbles.

Bug: 132907741
Test: manual

Change-Id: Ic301d578fee4e6a36be9642ba30ac0cc74cdd3cb
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java
packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java
packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ExpandedAnimationControllerTest.java