-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Missing FLAG_IMMUTABLE #2123
Labels
Comments
Please try: import androidx.core.os.BuildCompat
val flags = if (BuildCompat.isAtLeastS()) {
PendingIntent.FLAG_IMMUTABLE
} /**
* Checks if the device is running on a pre-release version of Android S or a release version of
* Android S or newer.
*
* @return {@code true} if S APIs are available for use, {@code false} otherwise
*/
@ChecksSdkIntAtLeast(api = 31, codename = "S")
public static boolean isAtLeastS() {
return VERSION.SDK_INT >= 31 || isAtLeastPreReleaseCodename("S", VERSION.CODENAME);
} |
This is fixed on main already by #2124 |
ghost
pushed a commit
to davthecodercom/leakcanary
that referenced
this issue
Sep 14, 2021
This was referenced Sep 14, 2021
Confirmed this is already fixed on main. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #2079 (comment)
The text was updated successfully, but these errors were encountered: