mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-04-23 14:27:21 +02:00
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) {
|
override fun onAppLauncherLongPressed(x: Float, y: Float, appLauncher: AppLauncher) {
|
||||||
val gridItem =
|
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)
|
activity?.showHomeIconMenu(x, y, gridItem, true)
|
||||||
ignoreTouches = true
|
ignoreTouches = true
|
||||||
}
|
}
|
||||||
|
@ -255,8 +255,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
|||||||
draggedHomeGridItem.apply {
|
draggedHomeGridItem.apply {
|
||||||
left = xIndex
|
left = xIndex
|
||||||
top = yIndex
|
top = yIndex
|
||||||
right = xIndex + 1
|
right = xIndex
|
||||||
bottom = yIndex + 1
|
bottom = yIndex
|
||||||
|
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
context.homeScreenGridItemsDB.updateItemPosition(left, top, right, bottom, id!!)
|
context.homeScreenGridItemsDB.updateItemPosition(left, top, right, bottom, id!!)
|
||||||
@ -269,8 +269,8 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel
|
|||||||
null,
|
null,
|
||||||
xIndex,
|
xIndex,
|
||||||
yIndex,
|
yIndex,
|
||||||
xIndex + 1,
|
xIndex,
|
||||||
yIndex + 1,
|
yIndex,
|
||||||
draggedItem!!.packageName,
|
draggedItem!!.packageName,
|
||||||
draggedItem!!.title,
|
draggedItem!!.title,
|
||||||
draggedItem!!.type,
|
draggedItem!!.type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user