mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge be076f0bcb
into 71ebee8ab6
This commit is contained in:
commit
1cabe8d4d6
3 changed files with 7 additions and 5 deletions
|
@ -18,6 +18,7 @@
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
|
android:exported="true"
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
android:screenOrientation="unspecified" >
|
android:screenOrientation="unspecified" >
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
@ -88,8 +89,8 @@
|
||||||
</provider>
|
</provider>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="21"
|
<uses-sdk android:minSdkVersion="26"
|
||||||
android:targetSdkVersion="30" />
|
android:targetSdkVersion="34" />
|
||||||
|
|
||||||
<supports-screens
|
<supports-screens
|
||||||
android:anyDensity="true"
|
android:anyDensity="true"
|
||||||
|
|
|
@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
implementation 'com.github.mik3y:usb-serial-for-android:3.8.1'
|
implementation 'com.github.mik3y:usb-serial-for-android:3.8.1'
|
||||||
implementation 'com.android.support:support-v4:28.0.0'
|
implementation 'androidx.core:core:1.15.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
|
@ -30,6 +30,7 @@ import android.content.pm.ResolveInfo;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
|
|
||||||
// this is the main class that will be run at start
|
// this is the main class that will be run at start
|
||||||
public class SubsurfaceMobileActivity extends QtActivity
|
public class SubsurfaceMobileActivity extends QtActivity
|
||||||
|
@ -129,7 +130,7 @@ public class SubsurfaceMobileActivity extends QtActivity
|
||||||
|
|
||||||
// Register the usb permission intent filter.
|
// Register the usb permission intent filter.
|
||||||
IntentFilter filter = new IntentFilter("org.subsurfacedivelog.mobile.USB_PERMISSION");
|
IntentFilter filter = new IntentFilter("org.subsurfacedivelog.mobile.USB_PERMISSION");
|
||||||
registerReceiver(usbReceiver, filter);
|
ContextCompat.registerReceiver(usbReceiver, filter, ContextCompat.RECEIVER_EXPORTED);
|
||||||
|
|
||||||
} // onCreate
|
} // onCreate
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue