Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing all custom layouts does not fall back to language default #1136

Open
crimson-mist opened this issue Feb 22, 2025 · 0 comments
Open

Comments

@crimson-mist
Copy link

What happened?

When I deleted all the custom layout example files, I expected my keyboard to return to language default, but instead, it errors

`Bug in your custom layout (0.1.24.1-playstore)

Layout custom0 could not be loaded.

Cause: Index 0 out of bounds for length 0

Stack trace: [jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64), jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70), jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266), java.util.Objects.checkIndex(Objects.java:359), java.util.ArrayList.get(ArrayList.java:434), org.futo.inputmethod.latin.uix.settings.pages.DevLayoutEditorKt.getCustomLayout(SourceFile:32), okio.Okio.getLayout(SourceFile:25), org.futo.inputmethod.v2keyboard.KeyboardLayoutSetV2.safeGetLayout(SourceFile:3), org.futo.inputmethod.v2keyboard.KeyboardLayoutSetV2.(SourceFile:388), org.futo.inputmethod.keyboard.KeyboardSwitcher.loadKeyboard(SourceFile:174), org.futo.inputmethod.latin.LatinIME.onStartInputView(SourceFile:445), android.inputmethodservice.InputMethodService.startViews(InputMethodService.java:3216), android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:3115), android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:1032), android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInputWithToken(InputMethodService.java:992), android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:232), com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44), android.os.Handler.dispatchMessage(Handler.java:107), android.os.Looper.loopOnce(Looper.java:232), android.os.Looper.loop(Looper.java:317), android.app.ActivityThread.main(ActivityThread.java:8757), java.lang.reflect.Method.invoke(Native Method), com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580), com.android.internal.os.ZygoteInit.main(ZygoteInit.java:892)]

Layout: custom0`

My English layout is set to qwerty in the main settings

Keyboard Version

0.1.24.1-playstore

Text field info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant