Fix shadow drawing in folders

This commit is contained in:
Ensar Sarajčić 2023-08-24 13:21:28 +02:00
parent 3dd78cc911
commit 6d3b138459
1 changed files with 5 additions and 5 deletions

View File

@ -469,8 +469,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
val folder = currentlyOpenFolder
if (folder != null && folder.getItemsDrawingRect().contains(
(sideMargins.left + draggedItemCurrentCoords.first).toFloat(),
(sideMargins.top + draggedItemCurrentCoords.second).toFloat()
(draggedItemCurrentCoords.first).toFloat(),
(draggedItemCurrentCoords.second).toFloat()
)
) {
val center = folder.getItemsGridCenters().minBy {
@ -1040,8 +1040,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
if (draggedItem != null && draggedItemCurrentCoords.first != -1 && draggedItemCurrentCoords.second != -1) {
if (draggedItem!!.isSingleCellType()) {
if (folder != null && folder.getItemsDrawingRect().contains(
(sideMargins.left + draggedItemCurrentCoords.first).toFloat(),
(sideMargins.top + draggedItemCurrentCoords.second).toFloat()
(draggedItemCurrentCoords.first).toFloat(),
(draggedItemCurrentCoords.second).toFloat()
)
) {