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

Commit 2cbdbc42 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Modify getShouldShowImeWithHardKeyboard return val

This modifies getShouldShowImeWithHardKeyboardForTesting to return a
nullable type, instead of the primitive boolean. The method is called
during a test teardown, before the IME process is actually stopped.
However, with config_preventImeStartupUnlessTextEditor set, the IME
process receives the onDestroy call as soon as the IME client is
removed. This would lead to a null pointer exception when calling this
getter method, as mSettingsObserver would already be null.

Flag: EXEMPT testfix
Bug: 406501026
Test: manually enable config_preventImeStartupUnlessTextEditor  and run
  atest InputMethodServiceTest#testImeSwitcherMenu_noLanguageSettingsWhenScreenLocked
Change-Id: I8a624268edf34c885627a094a06dbfaee5cd166b
parent 5e4edde8
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