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

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
}