From 608c573bdbc3d1e8015e32369fc99116979f323f Mon Sep 17 00:00:00 2001
From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com>
Date: Sat, 25 Oct 2025 14:30:58 +0530
Subject: [PATCH] feat(android): enable edge-to-edge and add dark launch/normal
themes for Android 15+
---
.../app/cogwheel/conduit/MainActivity.kt | 7 +-----
.../src/main/res/values-night-v35/styles.xml | 22 +++++++++++++++++++
.../app/src/main/res/values-v35/styles.xml | 2 ++
3 files changed, 25 insertions(+), 6 deletions(-)
create mode 100644 android/app/src/main/res/values-night-v35/styles.xml
diff --git a/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt b/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt
index f187378..e6e996f 100644
--- a/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt
+++ b/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt
@@ -11,12 +11,7 @@ class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
-
- // Modern edge-to-edge implementation for Android 15+
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
- window.decorView.setOnApplyWindowInsetsListener(null)
- }
-
+
// Enable edge-to-edge display (backwards compatible)
WindowCompat.setDecorFitsSystemWindows(window, false)
}
diff --git a/android/app/src/main/res/values-night-v35/styles.xml b/android/app/src/main/res/values-night-v35/styles.xml
new file mode 100644
index 0000000..7eaf8dd
--- /dev/null
+++ b/android/app/src/main/res/values-night-v35/styles.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values-v35/styles.xml b/android/app/src/main/res/values-v35/styles.xml
index df23346..db6df00 100644
--- a/android/app/src/main/res/values-v35/styles.xml
+++ b/android/app/src/main/res/values-v35/styles.xml
@@ -7,6 +7,7 @@
- @drawable/launch_background
- false
- false
+ - true