summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2018-11-20 17:24:20 -0800
committerYohei Yukawa <yukawa@google.com>2018-11-20 17:24:20 -0800
commitcf3bbffa899437f028a0da5092f20a93b9a3b96a (patch)
tree3ff9f16d780b88f8b667b6a1c790522cba9e1432 /tools/aapt2/java/JavaClassGenerator.cpp
parentd0f47278c4dae7274d6437942f2fca23c148f803 (diff)
Simplify IMMS#showInputMethodMenu() a bit
SwitchingController#getSortedInputMethodAndSubtypeListLocked() is anyway called to determine what items should be shown on the IME switcher dialog, whether there is no item to show or not should also be determined by the same method. There is no need to call getExplicitlyOrImplicitlyEnabledInputMethodsAndSubtypeListLocked() just to check whether its result is empty or not. Bug: 119837138 Test: Locally verified as follows: 1. Build and flash aosp_taimen-userdebug into taimen. 2. adb shell "settings put secure enabled_input_methods 'com.android.inputmethod.latin/.LatinIME;-921088104;-1337596075'" 3. Open the Dialer app and tap the top edit field. 4. Long tap the space key on AOSP Keyboard. 5. Make sure that IME switcher dialog is shown. 6. make -j SoftKeyboard 7. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk 8. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard 9. Tap the keyboard icon on the navigation bar. 10. Make sure that IME switcher dialog is shown. Change-Id: Ie166bbd86179db1dae9e31f25d45e76c5e1b15ad
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions