Skip to content

Commit 0d50381

Browse files
committed
Use mutable flag above Android 12
Signed-off-by: alperozturk <[email protected]>
1 parent da11f89 commit 0d50381

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/it/niedermann/owncloud/notes/shared/util/WidgetUtil.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ private WidgetUtil() {
2828
* @return {@param flags} | {@link PendingIntent#FLAG_MUTABLE}
2929
*/
3030
public static int pendingIntentFlagCompat(int flags) {
31-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
32-
return flags | PendingIntent.FLAG_IMMUTABLE;
33-
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
31+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
3432
return flags | PendingIntent.FLAG_MUTABLE;
3533
}
3634
return flags;

0 commit comments

Comments
 (0)