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

crash when klik ok in translation option #1455

@hasanelfalakiy

Description

@hasanelfalakiy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions