mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
Fix saving screen effects without profile
This commit is contained in:
1 parent
5a4b9cd8bb
commit
43ac387176
1 file changed
+14
-17
@@ -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 ->
|
||||
|
||||
Reference in new issue
Block a user