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

Commit af23e219 authored by Felix Stern's avatar Felix Stern Committed by Android Build Coastguard Worker
Browse files

Only update remote target, if visibility is different from input target

When syncing the visibility of the imeInputTarget to the (RemoteInsets)ControlTarget, without having an actual change, the upcoming call to updateClientVisibility will be ignored and we don't invoke the IMMS listener.
Therefore, we should only sync the visibility when it's different between imeInputTarget and controlTarget - otherwise we can directly invoke the listener.

Fix: 402547338
Fix: 405296840
Flag: android.view.inputmethod.refactor_insets_controller
Test: atest ImeInsetsSourceProviderTest#testUpdateControlForTarget_remoteInsetsControlTargetUnchanged
Test: manual: open view where controlTarget=RemoteInsetsControlTarget; Open another fullscreen app and request IME; close new window to return to RICT
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:43624020c81c27f67beb882d4cabb6ea041a6c89)
Merged-In: I96ffe688ae5eb32e325f3f7c9c62b392f7287100
Change-Id: I96ffe688ae5eb32e325f3f7c9c62b392f7287100
parent 4341e620
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