mirror of
https://github.com/izzy2lost/PSX2.git
synced 2026-07-05 15:18:36 -07:00
fix old edge to edge and bump version
This commit is contained in:
+2
-2
@@ -29,8 +29,8 @@ android {
|
||||
applicationId = "com.izzy2lost.psx2"
|
||||
minSdk = 26
|
||||
targetSdk = 36
|
||||
versionCode 16
|
||||
versionName "1.1.4"
|
||||
versionCode 17
|
||||
versionName "1.1.5"
|
||||
// APK
|
||||
base.archivesName = "PSX2_${versionCode}_${new Date().format('yyyyMMddHHmm')}"
|
||||
|
||||
|
||||
@@ -430,7 +430,18 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Enable edge-to-edge for Android 15+ compatibility
|
||||
EdgeToEdge.enable(this);
|
||||
// Use SystemBarStyle to avoid deprecated setStatusBarColor/setNavigationBarColor APIs
|
||||
EdgeToEdge.enable(
|
||||
this,
|
||||
androidx.activity.SystemBarStyle.auto(
|
||||
android.graphics.Color.TRANSPARENT,
|
||||
android.graphics.Color.TRANSPARENT
|
||||
),
|
||||
androidx.activity.SystemBarStyle.auto(
|
||||
android.graphics.Color.TRANSPARENT,
|
||||
android.graphics.Color.TRANSPARENT
|
||||
)
|
||||
);
|
||||
|
||||
// Hide action bar to improve immersive appearance
|
||||
if (getSupportActionBar() != null) {
|
||||
|
||||
Reference in New Issue
Block a user