mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 19:40:41 +01:00
Prevent usage of bottom row for widgets
This commit is contained in:
parent
5d642eefe2
commit
822b373a72
@ -239,7 +239,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onWidgetLongPressed(appWidget: AppWidget) {
|
override fun onWidgetLongPressed(appWidget: AppWidget) {
|
||||||
if (appWidget.heightCells > context.config.homeRowCount || appWidget.widthCells > context.config.homeColumnCount) {
|
if (appWidget.heightCells > context.config.homeRowCount - 1 || appWidget.widthCells > context.config.homeColumnCount) {
|
||||||
context.toast("Widget is too big for current home screen size")
|
context.toast("Widget is too big for current home screen size")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user