use 1x1 for app icon size

This commit is contained in:
tibbi 2022-10-05 10:37:15 +02:00
parent fd6fe125a9
commit 0bf2ccbcd0
2 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ class AllAppsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
override fun onAppLauncherLongPressed(x: Float, y: Float, appLauncher: AppLauncher) {
val gridItem =
HomeScreenGridItem(null, -1, -1, -1, -1, 1, 1, appLauncher.packageName, appLauncher.title, ITEM_TYPE_ICON, "", -1, appLauncher.drawable, null)
HomeScreenGridItem(null, -1, -1, -1, -1, appLauncher.packageName, appLauncher.title, ITEM_TYPE_ICON, "", -1, appLauncher.drawable)
activity?.showHomeIconMenu(x, y, gridItem, true)
ignoreTouches = true
}

View File

@ -255,8 +255,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
draggedHomeGridItem.apply {
left = xIndex
top = yIndex
right = xIndex + 1
bottom = yIndex + 1
right = xIndex
bottom = yIndex
ensureBackgroundThread {
context.homeScreenGridItemsDB.updateItemPosition(left, top, right, bottom, id!!)
@ -269,8 +269,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
null,
xIndex,
yIndex,
xIndex + 1,
yIndex + 1,
xIndex,
yIndex,
draggedItem!!.packageName,
draggedItem!!.title,
draggedItem!!.type,