Skip to content

Commit 6ab0ee2

Browse files
committed
Fix incorrect hard-coded value for PendingIntentFlags.Mutable
1 parent ebfe4c8 commit 6ab0ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UsbSerialForAndroid/Extensions/UsbManagerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static Task<bool> RequestPermissionAsync(this UsbManager manager, UsbDevi
3333
#if NET6_0_OR_GREATER
3434
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= BuildVersionCodes.S ? PendingIntentFlags.Mutable : 0;
3535
#else
36-
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= (BuildVersionCodes)31 ? (PendingIntentFlags).33554432 : 0;
36+
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= (BuildVersionCodes)31 ? (PendingIntentFlags)33554432 : 0;
3737
#endif
3838

3939
var intent = PendingIntent.GetBroadcast(context, 0, new Intent(ACTION_USB_PERMISSION), pendingIntentFlags);

0 commit comments

Comments
 (0)