summaryrefslogtreecommitdiff
path: root/native/android/input.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-03-07 00:15:29 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-03-06 16:37:30 +0000
commit73b61057824b7e073d70f3460f9a225b2cfa8bc7 (patch)
treeaca5e7f159128b2f14646ecb668809173eb98e73 /native/android/input.cpp
parentd7c542d1d1eda1d248cb8841e1cbb4e0f266c112 (diff)
Use surface position for starting reveal animation
The surface position is basically relative frame - surface insets. This aligns the same behavior as WindowState#startAnimation(anim) that uses mSurfacePosition to animate. If the app sets surface insets, its content will draw from the offset, e.g. (50,50), then the surface position will be (-50,-50) to make the window show at the requested position. Bug: 328282706 Test: Cold or warm launch an app with calling getWindow().getDecorView().setElevation(100f); in onCreate. The activity window should not have a weird offset when playing starting window reveal animation. Change-Id: I8c4f79d513014997f28c915682640c27d761a26c
Diffstat (limited to 'native/android/input.cpp')
0 files changed, 0 insertions, 0 deletions