show errors at long toasts

This commit is contained in:
Tibor Kaputa 2023-07-19 16:02:17 +02:00 committed by GitHub
parent f6176f0d85
commit a766abf248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
override fun onWidgetLongPressed(appWidget: AppWidget) {
if (appWidget.heightCells > context.config.homeRowCount - 1 || appWidget.widthCells > context.config.homeColumnCount) {
context.toast(context.getString(R.string.widget_too_big))
context.showErrorToast(context.getString(R.string.widget_too_big))
return
}