Android: guard overlapping Back key sequences


The predictive Back callback synthesizes a press and release
through the same handlers as physical Back events.

Track whether a Back press is pending. Ignore another initial
press while that state is set, and ignore a release when no
press is pending. Continue forwarding repeat presses and keep
the existing keyboard-dismissal handling.

Clear the pending state when unregistering the callback so
it does not survive an activity pause.

Pick-to: 6.12 6.8
Change-Id: Ifaa7838a984d0663dcc250348c3032a8f596d39d
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
commitba279639e10ae9486cfa56f9e472ede5f1d17fdf
parent0a9f572e681611d10c725eea73d9a5d1f2bce046
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeWed, 21 Oct 2026 10:57:31 +0000