Skip to content

Commit 05110fb

Browse files
authored
Merge pull request #64 from pshbot/main
Fix incorrect hard-coded value for PendingIntentFlags.Mutable
2 parents cac98bc + 6ab0ee2 commit 05110fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UsbSerialForAndroid/Extensions/UsbManagerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static Task<bool> RequestPermissionAsync(this UsbManager manager, UsbDevi
4242
#if NET6_0_OR_GREATER
4343
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= BuildVersionCodes.S ? PendingIntentFlags.Mutable : 0;
4444
#else
45-
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= (BuildVersionCodes)31 ? (PendingIntentFlags).33554432 : 0;
45+
PendingIntentFlags pendingIntentFlags = Build.VERSION.SdkInt >= (BuildVersionCodes)31 ? (PendingIntentFlags)33554432 : 0;
4646
#endif
4747

4848
var intent = new Intent(ACTION_USB_PERMISSION);

0 commit comments

Comments
 (0)