Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29dbb7e0 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Use MovableElementScenePicker logic in MediaScenePicker as a fallback." into main

parents ac4d6248 def8d4fc
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -49,14 +49,16 @@ object MediaScenePicker : ElementScenePicker {
            transition.isTransitioningBetween(Scenes.Lockscreen, Scenes.Communal) -> {
                Scenes.Lockscreen
            }

            // TODO: 345467290 - update with the actual scene picking
            transition.isTransitioningBetween(Scenes.QuickSettings, Scenes.Shade) -> {
                Scenes.QuickSettings
            }

            // TODO: 340216785 - update with the actual scene picking
            else -> pickSingleSceneIn(scenes, transition, element)
            else -> {
                when {
                    scenes.contains(transition.toScene) -> transition.toScene
                    scenes.contains(transition.fromScene) -> transition.fromScene
                    else -> null
                }
            }
        }
    }