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.
This commit is contained in:
Inhishonor
2026-05-12 12:48:07 -07:00
parent 65d7ffe7d0
commit 6a20c9b9ff
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@
<activity android:name=".feature.plus.PlusActivity" />
<activity
android:name=".feature.gallery.GalleryActivity"
android:theme="@style/AppTheme.Black" />
android:theme="@style/AppTheme.Gallery" />
<activity android:name=".feature.conversationinfo.ConversationInfoActivity" />
<activity android:name=".feature.notificationprefs.NotificationPrefsActivity" />
<activity android:name=".feature.blocking.BlockingActivity" />
@@ -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)
@@ -75,6 +75,10 @@
<item name="android:textColor">@color/textPrimary</item>
</style>
<style name="AppTheme.Gallery" parent="Theme.AppCompat.NoActionBar">
<item name="android:background">@color/black</item>
</style>
<!-- Black mode. No changes needed when not in night theme -->
<style name="AppTheme.Black" />
<style name="AppThemeDialog.Black" />