Skip to content

Commit e5a1d66

Browse files
authored
Android 15 (#1141)
1 parent 48c8c12 commit e5a1d66

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ allprojects {
1919
}
2020
}
2121

22-
static def androidCompileSdk() { return 34 }
22+
static def androidCompileSdk() { return 35 }
2323

2424
static def androidMinSdk() { return 21 }
2525

26-
static def androidTargetSdk() { return 34 }
26+
static def androidTargetSdk() { return 35 }
2727

2828
static def versionCode() { return 1 }
2929

vtm-android-example/AndroidManifest.xml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
android:icon="@mipmap/ic_launcher"
1717
android:label="@string/app_name"
1818
android:requestLegacyExternalStorage="true"
19+
android:theme="@style/AppThemeLight"
1920
android:usesCleartextTraffic="true">
2021
<activity
2122
android:name=".Samples"
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:tools="http://schemas.android.com/tools">
3+
4+
<style name="AppThemeDark" parent="android:Theme.Material">
5+
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
6+
</style>
7+
8+
<style name="AppThemeLight" parent="android:Theme.Material.Light.DarkActionBar">
9+
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
10+
</style>
11+
12+
</resources>

vtm-android-example/src/org/oscim/android/test/GettingStarted.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public void onCreate(Bundle savedInstanceState) {
5252
super.onCreate(savedInstanceState);
5353

5454
// Map view
55-
mapView = new MapView(this);
56-
setContentView(mapView);
55+
setContentView(R.layout.activity_map);
56+
mapView = findViewById(R.id.mapView);
5757

5858
// Open map
5959
Intent intent = new Intent(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_GET_CONTENT);

0 commit comments

Comments
 (0)