mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
Fix nullable automatic screen effects profile validation
This commit is contained in:
1 parent
27ae3631a3
commit
d99f0c1bfc
1 file changed
+2
-1
@@ -1429,7 +1429,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
|||||||
SessionPrefs.activeScreenEffectsProfileId(this@SessionActivity)
|
SessionPrefs.activeScreenEffectsProfileId(this@SessionActivity)
|
||||||
} else null
|
} else null
|
||||||
|
|
||||||
if (activeProfileId != null && activeProfileId != effectsEditorProfileId) {
|
if (target == SCREEN_EFFECTS_TARGET_AUTO &&
|
||||||
|
activeProfileId != effectsEditorProfileId) {
|
||||||
Log.w(TAG, "Screen effects profile changed while editing; discarding stale upscaler edit")
|
Log.w(TAG, "Screen effects profile changed while editing; discarding stale upscaler edit")
|
||||||
observedScreenEffectsProfileId = activeProfileId
|
observedScreenEffectsProfileId = activeProfileId
|
||||||
val activeEffects = SessionPrefs.screenEffects(this@SessionActivity, activeProfileId)
|
val activeEffects = SessionPrefs.screenEffects(this@SessionActivity, activeProfileId)
|
||||||
|
|||||||
Reference in new issue
Block a user