Skip to content

Commit

Permalink
Update for Android 12 and update version number to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Dec 7, 2023
1 parent 2aa2a97 commit 4e7957f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="se.bitcraze.crazyfliecontrol2"
android:versionCode="19"
android:versionCode="20"
android:versionName="0.7.3" >

<uses-feature
Expand Down
2 changes: 1 addition & 1 deletion src/se/bitcraze/crazyfliecontrol2/UsbLinkAndroid.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void initDevice(int vid, int pid) throws IOException, SecurityException {
//request permissions
if (mUsbDevice != null && !mUsbManager.hasPermission(mUsbDevice)) {
Log.d(LOG_TAG, "Request permission");
mPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(mContext.getPackageName()+".USB_PERMISSION"), 0);
mPermissionIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(mContext.getPackageName()+".USB_PERMISSION"), PendingIntent.FLAG_IMMUTABLE);
mUsbManager.requestPermission(mUsbDevice, mPermissionIntent);
} else if (mUsbDevice != null && mUsbManager.hasPermission(mUsbDevice)) {
Log.d(LOG_TAG, "Has permission");
Expand Down

0 comments on commit 4e7957f

Please sign in to comment.