summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Johannes Gallmann <gallmann@google.com> 2024-04-23 12:58:41 +0000
committer Johannes Gallmann <gallmann@google.com> 2024-04-30 14:33:21 +0000
commitc4c8aadff49209c0a187faa753b934ae706b0c7e (patch)
tree14ec829f43254896addf99777af9a7d638834301 /libs/input/PointerController.cpp
parent02aea3b17294c49fe20f943aba6cc543b121bf4c (diff)
Fix onKeyPreIme not called when enableOnBackInvokedCallback=false
Currently, IME callbacks are registered regardless of enableOnBackInvokedCallback being false. That causes the whole logic of onKeyPreIme in ViewRootImpl to be skipped entirely, because back events are directly dispatched to the IME callback. Instead, we should not register the IME callback if the app has not set enableOnBackInvokedCallback=true. In that case, back events will be dispatched to the compat-callback from ViewRoot which will inject BACK_KEY events which are piped through the usual key handling (including onKeyPreIme). Bug: 336470108 Flag: NONE Test: atest FrameworksCoreTests:WindowOnBackInvokedDispatcherTest Test: Manual, i.e. verifying that onKeyPreIme is called when enableOnBackInvokedCallback=false Change-Id: I8222cbc94ec25a366ced1139e3f99831114efbd5
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions