mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-18 04:20:36 +01:00
renaming some variables
This commit is contained in:
parent
55f243c401
commit
28e7db1ec7
@ -388,9 +388,9 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Vie
|
|||||||
|
|
||||||
// get the clickable area around the icon, it includes text too
|
// get the clickable area around the icon, it includes text too
|
||||||
private fun getClickableRect(item: HomeScreenGridItem): Rect {
|
private fun getClickableRect(item: HomeScreenGridItem): Rect {
|
||||||
val debugLeft = item.left * rowWidth + sideMargins.left
|
val clickableLeft = item.left * rowWidth + sideMargins.left
|
||||||
val debugTop = rowYCoords[item.top] + iconSize / 3 + sideMargins.top
|
val clickableTop = rowYCoords[item.top] + iconSize / 3 + sideMargins.top
|
||||||
return Rect(debugLeft, debugTop, debugLeft + rowWidth, debugTop + iconSize * 2)
|
return Rect(clickableLeft, clickableTop, clickableLeft + rowWidth, clickableTop + iconSize * 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
// drag the center of the widget, not the top left corner
|
// drag the center of the widget, not the top left corner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user