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

[Bug]: Application crash when deleting the resource name on a designer text field #873

Closed
2 tasks done
cledsupper opened this issue Mar 17, 2023 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@cledsupper
Copy link

What happened?

AndroidIDE crashed when I was deleting the resource name (text field for "android:src" property) on designer.

What's the expected behavior?

AndroidIDE should ignore such exception.

What version of AndroidIDE you're using?

v2.3.0 (debug builds)

Relevant log output

AndroidIDE crash report
Manufacturer: Xiaomi
Device: 2207117BPG
ABI: arm64-v8a
SDK version: 31
App version: v2.4.0-beta (240)

 Stacktrace: 
java.lang.IllegalArgumentException: DRAWABLE resource 'battery_charge_backgrou' not found
	at com.itsaky.androidide.inflater.internal.utils.BasicParseUtilsKt.resolveResourceReference(basicParseUtils.kt:5)
	at com.itsaky.androidide.inflater.internal.utils.BasicParseUtilsKt.parseReference(basicParseUtils.kt:381)
	at com.itsaky.androidide.inflater.AbstractParser.parseDrawable(AbstractParser.kt:10)
	at com.itsaky.androidide.inflater.AbstractParser.parseDrawable$default(AbstractParser.kt:15)
	at com.itsaky.androidide.inflater.internal.adapters.ImageViewAdapter$createAttrHandlers$8.invoke(ImageViewAdapter.kt:21)
	at com.itsaky.androidide.inflater.IViewAdapter.applyInternal(IViewAdapter.kt:20)
	at com.itsaky.androidide.inflater.IViewAdapter$apply$1.invoke(IViewAdapter.kt:10)
	at com.itsaky.androidide.inflater.IViewAdapter.doApply(IViewAdapter.kt:62)
	at com.itsaky.androidide.inflater.IViewAdapter.apply(IViewAdapter.kt:16)
	at com.itsaky.androidide.inflater.internal.ViewImpl.applyAttribute(ViewImpl.kt:40)
	at com.itsaky.androidide.uidesigner.fragments.AttrValueEditorFragment$showAttrInfo$1$2.invoke(AttrValueEditorFragment.kt:65)
	at com.itsaky.androidide.uidesigner.utils.ValueCompletionProvider$afterTextChanged$1$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:17)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:211)
	at android.os.Looper.loop(Looper.java:300)
	at android.app.ActivityThread.main(ActivityThread.java:8283)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1077)

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cledsupper cledsupper added the bug Something isn't working label Mar 17, 2023
@itsaky itsaky closed this as completed in 111a15d Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant