From 6a20c9b9ff6da110885160e5a2bcf63112f9967e Mon Sep 17 00:00:00 2001 From: Inhishonor Date: Tue, 12 May 2026 12:48:07 -0700 Subject: [PATCH] fix(gallery): Use a dedicated dark theme The app was setting gallery to black mode programmatically, and for some reason this was affecting other activities theming. We can just use a custom theme to force black mode that won't mess with other screens. --- presentation/src/main/AndroidManifest.xml | 2 +- .../java/com/moez/QKSMS/feature/gallery/GalleryActivity.kt | 1 - presentation/src/main/res/values/themes.xml | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/presentation/src/main/AndroidManifest.xml b/presentation/src/main/AndroidManifest.xml index 5a3ca000..b328dd8b 100644 --- a/presentation/src/main/AndroidManifest.xml +++ b/presentation/src/main/AndroidManifest.xml @@ -110,7 +110,7 @@ + android:theme="@style/AppTheme.Gallery" /> diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/gallery/GalleryActivity.kt b/presentation/src/main/java/com/moez/QKSMS/feature/gallery/GalleryActivity.kt index 4610802e..b7425df9 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/gallery/GalleryActivity.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/gallery/GalleryActivity.kt @@ -56,7 +56,6 @@ class GalleryActivity : QkActivity(), GalleryView { private val viewModel by lazy { ViewModelProviders.of(this, viewModelFactory)[GalleryViewModel::class.java] } override fun onCreate(savedInstanceState: Bundle?) { - delegate.localNightMode = AppCompatDelegate.MODE_NIGHT_YES AndroidInjection.inject(this) super.onCreate(savedInstanceState) binding = GalleryActivityBinding.inflate(layoutInflater) diff --git a/presentation/src/main/res/values/themes.xml b/presentation/src/main/res/values/themes.xml index 2ced1618..b58737d5 100644 --- a/presentation/src/main/res/values/themes.xml +++ b/presentation/src/main/res/values/themes.xml @@ -75,6 +75,10 @@ @color/textPrimary + +