diff --git a/app/src/main/java/li/klass/fhem/appwidget/ui/selection/other/OtherWidgetsAdapter.kt b/app/src/main/java/li/klass/fhem/appwidget/ui/selection/other/OtherWidgetsAdapter.kt index 1a7467661..09494bd5f 100644 --- a/app/src/main/java/li/klass/fhem/appwidget/ui/selection/other/OtherWidgetsAdapter.kt +++ b/app/src/main/java/li/klass/fhem/appwidget/ui/selection/other/OtherWidgetsAdapter.kt @@ -5,7 +5,7 @@ import android.view.View import android.view.ViewGroup import li.klass.fhem.R import li.klass.fhem.appwidget.ui.widget.base.AppWidgetView -import li.klass.fhem.databinding.SimpleListItemBinding +import li.klass.fhem.databinding.OneLineCardBinding class OtherWidgetsAdapter(elements: List, val callback: (view: AppWidgetView) -> Unit) : androidx.recyclerview.widget.RecyclerView.Adapter() { @@ -23,7 +23,7 @@ class OtherWidgetsAdapter(elements: List, val callback: (view: Ap class ViewHolder(val view: View, val widgetClickedCallback: (view: AppWidgetView) -> Unit) : androidx.recyclerview.widget.RecyclerView.ViewHolder(view) { fun bind(appWidgetView: AppWidgetView) { - val binding = SimpleListItemBinding.bind(view) + val binding = OneLineCardBinding.bind(view) binding.text.text = view.context.getString(appWidgetView.getWidgetName()) binding.root.setOnClickListener { widgetClickedCallback(appWidgetView) } } diff --git a/app/whatsnew-de.md b/app/whatsnew-de.md index 30404ce4c..e9a4f20e6 100644 --- a/app/whatsnew-de.md +++ b/app/whatsnew-de.md @@ -1 +1 @@ -TODO \ No newline at end of file +* Fix: App Crash beim Öffnen der "Anderen" Widgets \ No newline at end of file diff --git a/app/whatsnew-en.md b/app/whatsnew-en.md index 30404ce4c..1551bc1e7 100644 --- a/app/whatsnew-en.md +++ b/app/whatsnew-en.md @@ -1 +1 @@ -TODO \ No newline at end of file +* Fix app crash when opening "other" widgets \ No newline at end of file