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

Commit 94138d10 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Add DesktopRepo exception log for adding desk to itself

Flag: EXEMPT logging
Bug: 412902022
Test: manual

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