summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2022-01-26 16:39:34 -0800
committerEvan Rosky <erosky@google.com>2022-01-26 16:39:34 -0800
commit0c9aed677530fbc54ffdd385a5f37ac186283daa (patch)
tree22fa62c8d98503723f292c760a0c7e96855a64fd /core/java/android/inputmethodservice/InputMethodService.java
parent0e688c82473ad764db35fca00a254104fc6e78d1 (diff)
Wait for attachment in Activity syncEngine
There is a race between starting-window finishDraw and app attachment on cold-start. If the starting-window finishes first, the transition won't know if there is an associated display rotation. This results in the launch transition playing early but into the wrong rotation. Once the app does attach, a new transition will be created for the display rotation yielding an ugly animation. Solve this by just waiting for attachment before reporting syncFinished (after checking visibleRequested). Bug: 202201326 Test: cold-launch activity into a different rotation many times and observe 1 transition instead of 2. Change-Id: I744e8d35b4a11200be2374ca923ed9606e619977
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions