Skip to content

Commit 4e7957f

Browse files
committed
Update for Android 12 and update version number to 20
1 parent 2aa2a97 commit 4e7957f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="se.bitcraze.crazyfliecontrol2"
4-
android:versionCode="19"
4+
android:versionCode="20"
55
android:versionName="0.7.3" >
66

77
<uses-feature

src/se/bitcraze/crazyfliecontrol2/UsbLinkAndroid.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void initDevice(int vid, int pid) throws IOException, SecurityException {
9191
//request permissions
9292
if (mUsbDevice != null && !mUsbManager.hasPermission(mUsbDevice)) {
9393
Log.d(LOG_TAG, "Request permission");
94-
mPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(mContext.getPackageName()+".USB_PERMISSION"), 0);
94+
mPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(mContext.getPackageName()+".USB_PERMISSION"), PendingIntent.FLAG_IMMUTABLE);
9595
mUsbManager.requestPermission(mUsbDevice, mPermissionIntent);
9696
} else if (mUsbDevice != null && mUsbManager.hasPermission(mUsbDevice)) {
9797
Log.d(LOG_TAG, "Has permission");

0 commit comments

Comments
 (0)