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

Commit c8ef946b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add missing WindowDecorationWrapper impls for default case" into main

parents 31304016 a882aef5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -408,8 +408,9 @@ class WindowDecorationWrapper private constructor(
    fun updateHoverAndPressStatus(
        e: MotionEvent
    ) = when {
        defaultWindowDecor != null -> {} // No-op
        desktopWindowDecor != null -> requireDesktopWindowDecor().updateHoverAndPressStatus(e)
        else -> error("Expected Non-null desktop window decoration")
        else -> error("Expected Non-null default or desktop window decoration")
    }

    /** Handles a interruption to a drag event. */
@@ -548,8 +549,9 @@ class WindowDecorationWrapper private constructor(
    fun checkTouchEvent(
        e: MotionEvent
    ) = when {
        defaultWindowDecor != null -> {} // No-op
        desktopWindowDecor != null -> requireDesktopWindowDecor().checkTouchEvent(e)
        else -> error("Expected Non-null desktop window decoration")
        else -> error("Expected Non-null default or desktop window decoration")
    }

    /**