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

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

Merge "Show resize veil on top of the other tasks" into main

parents 32030e6e e6b091b3
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.graphics.Rect
import android.os.Trace
import android.view.Display
import android.view.SurfaceControl
import android.window.TaskConstants
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.ui.graphics.toArgb
@@ -98,7 +99,10 @@ class MultiDisplayDragMoveIndicatorSurface(

        rootTaskDisplayAreaOrganizer.reparentToDisplayArea(displayId, veil, transaction)
        relayout(bounds, transaction, shouldBeVisible = true)
        transaction.show(veil).setColor(veil, Color.valueOf(backgroundColor.toArgb()).components)
        transaction
            .show(veil)
            .setColor(veil, Color.valueOf(backgroundColor.toArgb()).components)
            .setLayer(veil, MOVE_INDICATOR_LAYER)
        transaction.apply()
    }

@@ -148,4 +152,8 @@ class MultiDisplayDragMoveIndicatorSurface(
            }
        }
    }

    companion object {
        private const val MOVE_INDICATOR_LAYER = TaskConstants.TASK_CHILD_LAYER_RESIZE_VEIL
    }
}