use 1x1 for app icon size
This commit is contained in:
parent
fd6fe125a9
commit
0bf2ccbcd0
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue