fix old edge to edge and bump version

This commit is contained in:
izzy2lost
2025-12-06 22:54:20 -05:00
parent 59efa09f28
commit 1aaa7b6d43
2 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -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) {