Helium314 / HeliBoard

Customizable and privacy-conscious open-source keyboard
Apache License 2.0
2.48k stars 97 forks source link

App keeps crashing when external keyboard is connected #1158

Open Aviator947 opened 1 month ago

Aviator947 commented 1 month ago

I just got an external (bluetooth) keyboard. When it's connected HeliBoard keeps crashing, see log: type: crash osVersion: google/tangorpro/tangorpro:14/AP2A.240905.003/2024092900:user/release-keys package: helium314.keyboard:2201 process: helium314.keyboard processUptime: 59928 + 358 ms installer: dev.imranr.obtainium

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference at helium314.keyboard.keyboard.KeyboardSwitcher.setMainKeyboardFrame(KeyboardSwitcher.java:305) at helium314.keyboard.keyboard.KeyboardSwitcher.setKeyboard(KeyboardSwitcher.java:188) at helium314.keyboard.keyboard.KeyboardSwitcher.setAlphabetAutomaticShiftedKeyboard(KeyboardSwitcher.java:256) at helium314.keyboard.keyboard.internal.KeyboardState.setShifted(KeyboardState.java:239) at helium314.keyboard.keyboard.internal.KeyboardState.updateAlphabetShiftState(KeyboardState.java:606) at helium314.keyboard.keyboard.internal.KeyboardState.onUpdateShiftState(KeyboardState.java:562) at helium314.keyboard.keyboard.KeyboardSwitcher.requestUpdatingShiftState(KeyboardSwitcher.java:448) at helium314.keyboard.latin.LatinIME.onUpdateSelection(LatinIME.java:1120) at android.inputmethodservice.InputMethodService$InputMethodSessionImpl.updateSelection(InputMethodService.java:1389) at android.inputmethodservice.IInputMethodSessionWrapper.executeMessage(IInputMethodSessionWrapper.java:107) at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at android.app.ActivityThread.main(ActivityThread.java:8623) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) at com.android.internal.os.ExecInit.main(ExecInit.java:50) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)

To Reproduce Connect external keyboard. Turn off automatically opening the on screen keyboard Use bluetooth keyboard Crash "HeliBoard has stopped working popup"

App version 2.2

Device: