Handle short #rgb values => Unknown color #158

Closed
opened 2023-12-20 19:48:51 +00:00 by AmineB · 0 comments
Owner

Parsing "#000" produces the issue below.

Handle short #rgb values.

java.lang.IllegalArgumentException: Unknown color
	at android.graphics.Color.parseColor(Color.java:1391)
	at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.handleTagChips(FilterSheetFragment.java:150)
	at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.access$getBinding$p(FilterSheetFragment.java:35)
	at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.access$handleTagChips(FilterSheetFragment.java:35)
	at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment$handleTagChips$1.invokeSuspend(FilterSheetFragment.java:0)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:106)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:236)
	at android.app.ActivityThread.main(ActivityThread.java:8056)
	at java.lang.reflect.Method.invoke(Method.java)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Attachments
Parsing "#000" produces the issue below. Handle short #rgb values. ``` java.lang.IllegalArgumentException: Unknown color at android.graphics.Color.parseColor(Color.java:1391) at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.handleTagChips(FilterSheetFragment.java:150) at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.access$getBinding$p(FilterSheetFragment.java:35) at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment.access$handleTagChips(FilterSheetFragment.java:35) at bou.amine.apps.readerforselfossv2.android.fragments.FilterSheetFragment$handleTagChips$1.invokeSuspend(FilterSheetFragment.java:0) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:106) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8056) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) Attachments ```
AmineB added this to the Dev project 2023-12-20 19:49:01 +00:00
AmineB self-assigned this 2023-12-20 19:49:06 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Louvorg/ReaderForSelfoss-multiplatform#158
No description provided.