Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 350010d2 authored by Vinit Nayak's avatar Vinit Nayak Committed by Arne Coucheron
Browse files

Set gesture exclusion rect for IMEs



Use visible inset values provided by
IMEs to set gesture exclusion rects
for the EdgeBackGestureHandler to ignore
regions where the keyboard is.
If the IME has not overridden
onComputeInsets(), InputMethodService
uses the location of R.id.inputArea
to approximate the location of where
the IME region starts.

Fixes: 141215181
Test: Tested full screen landscape keyboards
(Messenger, Hangouts), non full screen landscape
keyboards (SMS Messages), searching from the top
of the screen in the Toolbar (Google Play Store)

[AdrianDC] Backported from Android 11 to 10 to resolve
           back gesture navigation over the IME surface
           while built with Go's "ro.config.low_ram=true"
           which disables "mSupportsPictureInPicture" in
           WindowManagerService::registerPinnedStackListener

Change-Id: I359d719493fb92d49cd309c2d00371134cd758fe
Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 99f92318
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment