Skip to content

[Bug Report] Crash When Go To Recent Tasks Menu [com.android.launcher] #56

@UnknownKing407

Description

@UnknownKing407

Crash Log :

java.lang.RuntimeException: Unable to pause activity {io.github.ratul.topactivity/io.github.ratul.topactivity.ui.MainActivity}: java.lang.IllegalArgumentException: io.github.ratul.topactivity: 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.performPauseActivityIfNeeded(ActivityThread.java:5629)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5580)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5532)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:239)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:210)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:182)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2643)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:368)
at android.app.ActivityThread.main(ActivityThread.java:8839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: java.lang.IllegalArgumentException: io.github.ratul.topactivity: 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:428)
at android.app.PendingIntent.getActivitiesAsUser(PendingIntent.java:678)
at android.app.PendingIntent.getActivities(PendingIntent.java:661)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:275)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:249)
at io.github.ratul.topactivity.model.NotificationMonitor.c(Unknown Source:95)
at io.github.ratul.topactivity.ui.MainActivity.onPause(Unknown Source:10)
at android.app.Activity.performPause(Activity.java:8963)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1676)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5619)
... 14 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions