summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2024-06-27 14:03:48 +0000
committer Johannes Gallmann <gallmann@google.com> 2024-06-27 14:03:48 +0000
commitc478dd15cae174e5b77939dd8f53bce1951d0fda (patch)
tree9f409270f1fccb713b67a92eb6ccfbe5d33cb3d7 /libs/androidfw/FileStream.cpp
parente84fdcef8279905f1fe5168645918827dfad4422 (diff)
Do not intercept Back Key Event with FLAG_PRE_IME_ONLY in NativePreIme stage
If the Back Key Event has the FLAG_PRE_IME_ONLY set, it should not be intercepted at the NativePreIme stage. Instead, the event is solely intended for the ViewPreImeInputStage to give apps the chance to intercept the back event before the predictive IME back animation commits. Without this change, we would send back events to the active animation callback in some cases (in `doOnBackKeyEvent`) even though the back key event was just injected by WindowOnBackInvokedDispatcher to give the app the chance to intercept it. Bug: 341013064 Flag: android.view.inputmethod.predictive_back_ime Test: Manual, i.e. verifying that no callback methods are called by ViewRootImpl on animation callback during pre-ime handling of injected back key event Change-Id: Icd8a1ff3117f0acb668e4c05c5e353cd8847047c
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions