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

Cleanup console output #322

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Cleanup console output #322

merged 1 commit into from
Nov 17, 2023

Conversation

cyb3rko
Copy link
Contributor

@cyb3rko cyb3rko commented Nov 12, 2023

I've noticed a pretty cluttered console output, with the following two logs:

Failed to inflate ColorStateList, leaving it to the framework
java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f0400f9 a=-1}, theme={InheritanceMap=[id=0x7f12000dcom.github.gotify.dev:style/AppTheme.NoActionBar, id=0x7f120009com.github.gotify.dev:style/AppTheme, id=0x7f120255com.github.gotify.dev:style/Theme.Material3.DayNight, id=0x7f12024dcom.github.gotify.dev:style/Theme.Material3.Dark, id=0x7f12005fcom.github.gotify.dev:style/Base.Theme.Material3.Dark, id=0x7f1200b6com.github.gotify.dev:style/Base.V24.Theme.Material3.Dark, id=0x7f12008ecom.github.gotify.dev:style/Base.V14.Theme.Material3.Dark, id=0x7f120268com.github.gotify.dev:style/Theme.MaterialComponents, id=0x7f120067com.github.gotify.dev:style/Base.Theme.MaterialComponents, id=0x7f1200aacom.github.gotify.dev:style/Base.V21.Theme.MaterialComponents, id=0x7f120096com.github.gotify.dev:style/Base.V14.Theme.MaterialComponents, id=0x7f120097com.github.gotify.dev:style/Base.V14.Theme.MaterialComponents.Bridge, id=0x7f120142com.github.gotify.dev:style/Platform.MaterialComponents, id=0x7f120231com.github.gotify.dev:style/Theme.AppCompat, id=0x7f120051com.github.gotify.dev:style/Base.Theme.AppCompat, id=0x7f1200bdcom.github.gotify.dev:style/Base.V28.Theme.AppCompat, id=0x7f1200bacom.github.gotify.dev:style/Base.V26.Theme.AppCompat, id=0x7f1200b4com.github.gotify.dev:style/Base.V23.Theme.AppCompat, id=0x7f1200b2com.github.gotify.dev:style/Base.V22.Theme.AppCompat, id=0x7f1200a6com.github.gotify.dev:style/Base.V21.Theme.AppCompat, id=0x7f1200bfcom.github.gotify.dev:style/Base.V7.Theme.AppCompat, id=0x7f120140com.github.gotify.dev:style/Platform.AppCompat, id=0x7f12014bcom.github.gotify.dev:style/Platform.V25.AppCompat, id=0x103022eandroid:style/Theme.Material.NoActionBar, id=0x1030224android:style/Theme.Material, id=0x1030005android:style/Theme], Themes=[com.github.gotify.dev:style/AppTheme.NoActionBar, forced, com.github.gotify.dev:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
	at android.content.res.TypedArray.getColor(TypedArray.java:529)
	at androidx.core.content.res.ColorStateListInflaterCompat.inflate(ColorStateListInflaterCompat.java:160)
	at androidx.core.content.res.ColorStateListInflaterCompat.createFromXmlInner(ColorStateListInflaterCompat.java:125)
	at androidx.core.content.res.ColorStateListInflaterCompat.createFromXml(ColorStateListInflaterCompat.java:104)
	at androidx.core.content.res.ResourcesCompat.inflateColorStateList(ResourcesCompat.java:262)
	at androidx.core.content.res.ResourcesCompat.getColorStateList(ResourcesCompat.java:236)
	at androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:558)
	at androidx.appcompat.content.res.AppCompatResources.getColorStateList(AppCompatResources.java:48)
        ...

app:theme is now deprecated. Please move to using android:theme instead.


It was a quick fix.

Copy link
Member

@jmattheis jmattheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@jmattheis jmattheis merged commit b6519d1 into gotify:master Nov 17, 2023
1 check passed
@cyb3rko cyb3rko deleted the console-cleanup branch November 18, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants