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

Episodes won't start in Android 12 #68

Closed
gadgetguy08 opened this issue Oct 25, 2021 · 1 comment · Fixed by #69
Closed

Episodes won't start in Android 12 #68

gadgetguy08 opened this issue Oct 25, 2021 · 1 comment · Fixed by #69

Comments

@gadgetguy08
Copy link

After upgrading to Android 12, Episodes will not start properly.

Found this Error in the log:

FATAL EXCEPTION: main Process: com.redcoracle.episodes, PID: 32086 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.redcoracle.episodes/com.redcoracle.episodes.MainActivity}: java.lang.IllegalArgumentException: com.redcoracle.episodes: 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.ActivityThread.performLaunchActivity(ActivityThread.java:3640) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3797) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2215) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7844) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ExecInit.main(ExecInit.java:48) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355) Caused by: java.lang.IllegalArgumentException: com.redcoracle.episodes: 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.checkFlags(PendingIntent.java:375) at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:724) at android.app.PendingIntent.getService(PendingIntent.java:686) at com.redcoracle.episodes.AutoRefreshHelper.rescheduleAlarm(AutoRefreshHelper.java:157) at com.redcoracle.episodes.MainActivity.onCreate(MainActivity.java:62) at android.app.Activity.performCreate(Activity.java:8051) at android.app.Activity.performCreate(Activity.java:8031) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1333) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3613) ... 14 more

red-coracle added a commit that referenced this issue Oct 25, 2021
Fixes crash on Android 12. Closes #68.
red-coracle added a commit that referenced this issue Oct 25, 2021
Fixes crash on Android 12. Closes #68.
@red-coracle
Copy link
Owner

Thank you for the report! I just published a new version with the fix. If you're using F-Droid it should get released within a few days.

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.

2 participants