From 43ac38717683bbab32b5a0695566b4fa1e5d429a Mon Sep 17 00:00:00 2001 From: EnzoDLofi Date: Thu, 12 Nov 2026 17:19:17 -0400 Subject: [PATCH] Fix saving screen effects without profile --- .../com/droiddeck/launcher/SessionActivity.kt | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt index 8fd35fe787..a8c98ecc51 100644 --- a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt +++ b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt @@ -1364,28 +1364,25 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde WaylandCompositor.nativeSetUpscaleSharpness(pct) }, onEffects = { e -> - if ((drawerOpen || (docked && drawerPinned)) && - effectsEditorProfileId != null) { + if (drawerOpen || (docked && drawerPinned)) { val activeProfileId = SessionPrefs.activeScreenEffectsProfileId(this@SessionActivity) - if (activeProfileId != null) { - if (activeProfileId != effectsEditorProfileId) { - Log.w( - TAG, - "Screen effects profile changed while editing; saving to active profile", - ) - } - - SessionPrefs.setScreenEffects( - this@SessionActivity, - activeProfileId, - e, + if (activeProfileId != effectsEditorProfileId) { + Log.w( + TAG, + "Screen effects profile changed while editing; saving to active profile", ) - observedScreenEffectsProfileId = activeProfileId - effects = e - e.push(upscaler) } + + SessionPrefs.setScreenEffects( + this@SessionActivity, + activeProfileId, + e, + ) + observedScreenEffectsProfileId = activeProfileId + effects = e + e.push(upscaler) } }, onTextureAnisotropy = { value ->