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

When I enter the habit and click the delete button, it crashes #320

Open
shuen2023 opened this issue Jan 19, 2025 · 0 comments · May be fixed by #330
Open

When I enter the habit and click the delete button, it crashes #320

shuen2023 opened this issue Jan 19, 2025 · 0 comments · May be fixed by #330

Comments

@shuen2023
Copy link

java.lang.IllegalArgumentException: rocks.poopjournal.todont: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkPendingIntent(PendingIntent.java:460)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:763)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:750)
at rocks.poopjournal.todont.utils.HabitsBottomSheetDialog.deleteAlarm(HabitsBottomSheetDialog.kt:284)
at rocks.poopjournal.todont.utils.HabitsBottomSheetDialog.init$lambda$7(HabitsBottomSheetDialog.kt:142)
at rocks.poopjournal.todont.utils.HabitsBottomSheetDialog.$r8$lambda$NtGMwMfakvBKiGJqSn24wOOJK3E(Unknown Source:0)
at rocks.poopjournal.todont.utils.HabitsBottomSheetDialog$$ExternalSyntheticLambda5.onClick(D8$$SyntheticClass:0)
at android.view.View.performClick(View.java:8208)
at android.view.View.performClickInternal(View.java:8185)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:32659)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.app.ActivityThread.main(ActivityThread.java:9591)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:615)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

@penn5 penn5 linked a pull request Feb 16, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant