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

Commit 5a3b394a authored by Gustav Sennton's avatar Gustav Sennton Committed by Android (Google) Code Review
Browse files

Merge "Add DesktopRepo exception log for adding desk to itself" into main

parents 16fec001 94138d10
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@ import android.graphics.Rect
import android.graphics.Region
import android.graphics.Region
import android.util.ArrayMap
import android.util.ArrayMap
import android.util.ArraySet
import android.util.ArraySet
import android.util.Slog
import android.util.SparseArray
import android.util.SparseArray
import android.view.Display.INVALID_DISPLAY
import android.view.Display.INVALID_DISPLAY
import android.window.DesktopExperienceFlags
import android.window.DesktopExperienceFlags
@@ -450,6 +451,9 @@ class DesktopRepository(
            taskId,
            taskId,
            isVisible,
            isVisible,
        )
        )
        if (deskId == taskId) {
            Slog.e(TAG, "Adding desk to itself: deskId=$deskId", Exception())
        }
        addOrMoveTaskToTopOfDesk(displayId = displayId, deskId = deskId, taskId = taskId)
        addOrMoveTaskToTopOfDesk(displayId = displayId, deskId = deskId, taskId = taskId)
        addActiveTaskToDesk(displayId = displayId, deskId = deskId, taskId = taskId)
        addActiveTaskToDesk(displayId = displayId, deskId = deskId, taskId = taskId)
        updateTaskInDesk(
        updateTaskInDesk(