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

Skip to content
Commit 23998b60 authored by Felix Stern's avatar Felix Stern
Browse files

Changing IMM#hideSoftInputFromWindow return value for app with target SDK's < B

Some older apps are calling InputMethodManager#hideSoftInputFromWindow multiple times, until it returns false, to show then their in-app keyboard. Before Android Baklava, the return value was an indicator, whether the request has been send to IMMS. For apps targeting those releases, we return true only if the IME was requested visible before.
Apps that target Android Baklava and onwards should use the View.OnApplyWindowInsetsListener to get changes in the IME visibility.

Fix: 395521150
Fix: 395986009
Flag: android.view.inputmethod.refactor_insets_controller
Test: manual with app with targetSDK < Android Baklava: call IMS#hideSoftInputFromWindow while IME is showing (expect true), and while hidden (expect false)
Change-Id: I1e4588f017fecd49b3aa999fa7749ae7a3bb0d1e
parent 5e6a3f32
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