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

RuntimeException in org.isoron.uhabits.utils.StyledResources #907

Closed
3 tasks done
iSoron opened this issue May 16, 2021 · 1 comment
Closed
3 tasks done

RuntimeException in org.isoron.uhabits.utils.StyledResources #907

iSoron opened this issue May 16, 2021 · 1 comment
Labels
bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity
Milestone

Comments

@iSoron
Copy link
Owner

iSoron commented May 16, 2021

Pre-submission checklist

  • I am submitting a bug report, not a feature request.
  • I am running the latest version of Loop Habit Tracker.
  • I have have searched for similar issues, but did not find any matches.

Description

From Google Play Console:

java.lang.RuntimeException: palette resource not found
  at org.isoron.uhabits.utils.StyledResources.getPalette (StyledResources.kt:66)
  at org.isoron.uhabits.utils.PaletteUtilsKt.toThemedAndroidColor (PaletteUtils.kt:33)
  at org.isoron.uhabits.widgets.CheckmarkWidget.refreshData (CheckmarkWidget.kt:56)
  at org.isoron.uhabits.widgets.BaseWidget.getRemoteViews (BaseWidget.kt:117)
  at org.isoron.uhabits.widgets.BaseWidget.getLandscapeRemoteViews (BaseWidget.kt:48)
  at org.isoron.uhabits.widgets.StackRemoteViewsFactory.onDataSetChanged (StackRemoteViewsFactory.kt:145)
  at android.widget.RemoteViewsService$RemoteViewsFactoryAdapter.onDataSetChanged (RemoteViewsService.java:142)
  at com.android.internal.widget.IRemoteViewsFactory$Stub.onTransact (IRemoteViewsFactory.java:150)
  at android.os.Binder.execTransactInternal (Binder.java:1190)
  at android.os.Binder.execTransact (Binder.java:1159)

Steps to reproduce

Unknown

System information

  • Phone: Multiple (Samsung Galaxy A51, OnePlus 7T)
  • Phone Operating System: Android 11 (SDK 30)
  • App version: 2.0.2
@iSoron iSoron added bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity labels May 16, 2021
@iSoron iSoron added this to the Loop 2.0.3 milestone Jun 5, 2021
iSoron added a commit that referenced this issue Jul 31, 2021
@iSoron
Copy link
Owner Author

iSoron commented Jul 31, 2021

Fixed in branch hotfix/2.0.3 by removing PaletteUtilsKt.toThemedAndroidColor. We should probably stay away from Android's context.theme and styled attributes, unless completely unavoidable. These are poorly documented and unreliable.

@iSoron iSoron closed this as completed Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not behaving as the developers expected cant-reproduce The developers cannot replicate the issue on their own devices high-severity
Projects
None yet
Development

No branches or pull requests

1 participant