diff --git a/app/build.gradle b/app/build.gradle index ab2aace..d2129b9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.izzy2lost.psx2" minSdk 26 targetSdk 36 - versionCode 8 - versionName "1.0.6" + versionCode 9 + versionName "1.0.7" // APK setProperty("archivesBaseName","PSX2_${versionCode}_${new Date().format('yyyyMMddHHmm')}") diff --git a/app/src/main/java/com/izzy2lost/psx2/MainActivity.java b/app/src/main/java/com/izzy2lost/psx2/MainActivity.java index 9c3fc07..90441b2 100644 --- a/app/src/main/java/com/izzy2lost/psx2/MainActivity.java +++ b/app/src/main/java/com/izzy2lost/psx2/MainActivity.java @@ -425,6 +425,17 @@ public class MainActivity extends AppCompatActivity implements GamesCoverDialogF protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + // Force dark mode for consistent appearance + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + // Android 12+ (API 31+) + getWindow().getDecorView().getWindowInsetsController().setSystemBarsAppearance(0, + android.view.WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS | + android.view.WindowInsetsController.APPEARANCE_LIGHT_NAVIGATION_BARS); + } + // Force dark mode using AppCompat + androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode( + androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES); + // Enable edge-to-edge for Android 15+ compatibility EdgeToEdge.enable(this); diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index a10639e..8a8653b 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,53 +1,57 @@ + @@ -59,5 +63,7 @@ ?attr/colorSurface @android:color/transparent @android:color/transparent + false + false