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:theme="@style/AppTheme"
|
||||
android:launchMode="singleTop"
|
||||
android:exported="true"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:screenOrientation="unspecified" >
|
||||
<intent-filter>
|
||||
|
@ -88,8 +89,8 @@
|
|||
</provider>
|
||||
</application>
|
||||
|
||||
<uses-sdk android:minSdkVersion="21"
|
||||
android:targetSdkVersion="30" />
|
||||
<uses-sdk android:minSdkVersion="26"
|
||||
android:targetSdkVersion="34" />
|
||||
|
||||
<supports-screens
|
||||
android:anyDensity="true"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************
|
||||
* SPDX-License-Identifier: GPL-2.0
|
||||
* SPDX-License-Identifier: GPL-2.0
|
||||
* Subsurface-Mobile own Gradle build spec. Derived from
|
||||
* the one supplied by Qt.
|
||||
*******************************************************/
|
||||
|
@ -29,7 +29,7 @@ apply plugin: 'com.android.application'
|
|||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
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 {
|
||||
|
|
|
@ -30,6 +30,7 @@ import android.content.pm.ResolveInfo;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
// this is the main class that will be run at start
|
||||
public class SubsurfaceMobileActivity extends QtActivity
|
||||
|
@ -129,7 +130,7 @@ public class SubsurfaceMobileActivity extends QtActivity
|
|||
|
||||
// Register the usb permission intent filter.
|
||||
IntentFilter filter = new IntentFilter("org.subsurfacedivelog.mobile.USB_PERMISSION");
|
||||
registerReceiver(usbReceiver, filter);
|
||||
ContextCompat.registerReceiver(usbReceiver, filter, ContextCompat.RECEIVER_EXPORTED);
|
||||
|
||||
} // onCreate
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue