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

Skip to content
Commit 61e1f831 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Add IME switch button long click support

This adds support for handling long clicking on the IME switch button.
Initially it will behave exactly like short clicking, i.e. show the IME
switcher menu.

As the IME navigation bar didn't previously support long clicks, this
follows along the logic of the SystemUI navigation bar, with a small
modification: holding down the button for longer than the long click
timeout does not send a cancel event, to maintain the current behaviour
that holding down the IME dismiss button should still hide the IME.

Flag: android.view.inputmethod.ime_switcher_revamp
Test: atest
  NavigationBarTest#testImeSwitcherClick
  NavigationBarTest#testImeSwitcherLongClick
  InputMethodServiceTest#testBackButtonClick
  InputMethodServiceTest#testBackButtonLongClick
  InputMethodServiceTest#testImeSwitchButtonClick
  InputMethodServiceTest#testImeSwitchButtonLongClick
Bug: 311791923
Change-Id: I633da5b03fa50ec1ccf515a4df5538e397d15442
parent 0d210c3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment