android / android/codelab-activity_transitionapi
android 12 specifying mutability flag
Open
- Dominant language
- Java
- Stars
- 24
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
in https://developer.android.com/codelabs/activity-recognition-transition#5
you should not pass 0 for the flags rather the pending intent needs tp specify the mutability flag.
mActivityTransitionsPendingIntent =
PendingIntent.getBroadcast(MainActivity.this, 0, intent, 0);
Contributor guide
Research direction
Start with the linked activity-recognition codelab step and the PendingIntent.getBroadcast call shown in the issue. Check the Android 12 PendingIntent mutability requirement, then update the flags so the codelab no longer passes 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100