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

Commit 3a0f01da authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Check system nav bar for custom IME Switcher vis

This enhances the onCustomImeSwitcherButtonRequestedVisible API to also
take into account the system navigation bar, in addition to the IME
navigation bar. The system bar is generally automatically shown whenever
the IME is shown, but this can be overriden through a config. Moreover,
the IME navigation bar can be disabled through a sysprop.

This takes into account both the config and the sysprop to provide a
more accurate response about the custom button requested visibility.

Flag: android.view.inputmethod.ime_switcher_revamp_api
Bug: 385018555
Test: atest
  InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_gestureNav
  InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_threeButtonNav
  InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_hideNavBarForKeyboard
  InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_imeNavigationBarDisabled
  InputMethodServiceTest#testOnCustomImeSwitcherButtonRequestedVisible_imeNavigationBarDisabled_hideNavBarForKeyboard
Change-Id: I1746e1f4cceb118140747c7ffb2b4266e3fee31e
parent 663723d7
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