Skip to content

Commit 32a9569

Browse files
committed
Updated Target SDK to 35
1 parent 6e2ed90 commit 32a9569

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

OPNMIDI-Player/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def pin_alias = System.env.PIN_ALIAS
77
def db_pass_alias = System.env.DB_PASS_ALIAS
88

99
android {
10-
compileSdk 34
10+
compileSdk 35
1111

1212
// Note: The NDK 23 is SIGNIFICANTLY important, because of the support for non-NEON and older Android versions
1313
// The NDK 24 removes the support for Android 4.1, 4.2, and 4.3.
@@ -21,7 +21,7 @@ android {
2121
defaultConfig {
2222
applicationId "ru.wohlsoft.opnmidiplayer"
2323
minSdkVersion 16
24-
targetSdkVersion 34
24+
targetSdkVersion 35
2525
versionCode 1050014
2626
versionName '1.5.0.14'
2727
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
@@ -93,5 +93,6 @@ dependencies {
9393
//noinspection GradleDependency: the version 1.6.1 is last that support minSDK 16, newer version will require MinSDK 21
9494
implementation 'androidx.appcompat:appcompat:1.6.1'
9595
compileOnly 'junit:junit:4.13.2'
96+
//noinspection GradleDependency: the version 2.1.4 is last that support minSDK 16, newer version will require MinSDK 21
9697
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
9798
}

OPNMIDI-Player/src/main/java/ru/wohlsoft/opnmidiplayer/Player.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import android.widget.CheckBox;
2727
import android.widget.CompoundButton;
2828
import android.widget.EditText;
29+
import android.widget.RelativeLayout;
2930
import android.widget.SeekBar;
3031
import android.widget.Spinner;
3132
import android.widget.TextView;
@@ -566,6 +567,13 @@ protected void onCreate(Bundle savedInstanceState)
566567
super.onCreate(savedInstanceState);
567568
setContentView(R.layout.activity_player);
568569

570+
// Workaround to keep content visible
571+
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM)
572+
{
573+
RelativeLayout lo = findViewById(R.id.activity_playerZ);
574+
lo.setPadding(lo.getPaddingLeft(), lo.getPaddingLeft() + 140, lo.getPaddingRight(), lo.getPaddingBottom() + 140);
575+
}
576+
569577
if(Build.VERSION.SDK_INT <= Build.VERSION_CODES.P)
570578
m_lastPath = Environment.getExternalStorageDirectory().getPath();
571579
else

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
google()
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:8.4.2'
12+
classpath 'com.android.tools.build:gradle:8.8.0'
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515
}

0 commit comments

Comments
 (0)