Prevent stale screen effects overwriting active profile

This commit is contained in:
EnzoDLofi committed 2026-11-13 22:16:13 -04:00
1 parent 43ac387176
commit 103c108c75
1 file changed
+16 -10
@@ -1371,18 +1371,24 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
if (activeProfileId != effectsEditorProfileId) {
Log.w(
TAG,
"Screen effects profile changed while editing; saving to active profile",
"Screen effects profile changed while editing; discarding stale edit",
)
}
SessionPrefs.setScreenEffects(
this@SessionActivity,
activeProfileId,
e,
)
observedScreenEffectsProfileId = activeProfileId
effects = e
e.push(upscaler)
val activeEffects =
SessionPrefs.screenEffects(this@SessionActivity, activeProfileId)
observedScreenEffectsProfileId = activeProfileId
effects = activeEffects
activeEffects.push(upscaler)
} else {
SessionPrefs.setScreenEffects(
this@SessionActivity,
activeProfileId,
e,
)
observedScreenEffectsProfileId = activeProfileId
effects = e
e.push(upscaler)
}
}
},
onTextureAnisotropy = { value ->