summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2020-06-25 20:21:47 -0700
committerWinson Chung <winsonc@google.com>2020-06-26 17:11:27 +0000
commit0764d9e8f3a4efca9465a1a4044e2478c7396497 (patch)
tree3da7b08743721f32e526f999bd209672ce6862d8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf8fe1d9766b0f1f380d1887bdb6b1c6ca57374c8 (diff)
Fix a couple minor but visible issues
- b/156431985 was not completely fixed -- when the PIP was below the shelf offset, opening the ime (ie. on the homescreen) would not push the PIP above the ime. The logic to check if the PIP was incorrect and should only be checking in each direction if the current bounds is above or below the area to be offset from - the fix for b/156431985 (ag/11453136) calls setAllowTouches to reset the touch state after the fling settles, but if the user touches and tries to grab the PIP while it is settling, the subsequent call to reset will prevent that new touch gesture from working. Instead we can just reset the touch state on up after we calculated everything we need for the fling Change-Id: I0b3265780035bf6c7d7b74bf05a5ed07564740c6 Bug: 159959599 Test: Move pip above the auto shift region, show ime then go home and ensure it never moves the PIP (also landscape) Test: Move pip into the shelf region, show ime then go home and ensure it shifts to show the ime and then goes back (also landscape) Test: Move pip above the auto shift region, show ime then move the PIP above the ime, go home and ensure it shifts the pip down (also landscape) Test: Fling the pip from the bottom of the screen to the top and try to grab it just as it settles, ensure that this works
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions