Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

crash when klik ok in translation option #1455

Closed
2 tasks done
hasanelfalakiy opened this issue Nov 11, 2023 · 0 comments
Closed
2 tasks done

crash when klik ok in translation option #1455

hasanelfalakiy opened this issue Nov 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hasanelfalakiy
Copy link

What happened?

The application crashes when I click OK on the translation option, even though I don't change the language, I just look and click OK then it crashes
I use the last commit application

What's the expected behavior?

fixed, even when the user does not change the language

What version of AndroidIDE you're using?

v2.6.0 (debug builds)

Relevant log output

AndroidIDE Crash Report
Version : v2.6.0-beta (260)
CI Build : true
Branch : dev
Commit : 5373698e8
Variant : arm64-v8a (debug)
SDK Version : 30
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : vivo
Device : vivo1901

Stacktrace:
java.lang.ArrayIndexOutOfBoundsException: length=13; index=-2
	at com.itsaky.androidide.preferences.LocaleSelector.onChoiceConfirmed(general.kt:191)
	at com.itsaky.androidide.preferences.SingleChoicePreference.onChoicesConfirmed(SingleChoicePreference.kt:76)
	at com.itsaky.androidide.preferences.ChoiceBasedDialogPreference.onConfigureDialog$lambda$1(ChoiceBasedDialogPreference.kt:48)
	at com.itsaky.androidide.preferences.ChoiceBasedDialogPreference.$r8$lambda$Z8_kzZIXzDw0jQFUdw51EsSjNMw(Unknown Source:0)
	at com.itsaky.androidide.preferences.ChoiceBasedDialogPreference$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:257)
	at android.app.ActivityThread.main(ActivityThread.java:8192)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hasanelfalakiy hasanelfalakiy added the bug Something isn't working label Nov 11, 2023
@itsaky itsaky closed this as completed in c28c2d8 Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant