Skip to content

Commit f0c7da7

Browse files
fix pendingIntent
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 384c7a8 commit f0c7da7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ 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+
}
3134
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
3235
return flags | PendingIntent.FLAG_MUTABLE;
3336
}

0 commit comments

Comments
 (0)