From f746ef42f3d7f2e3d6240feca42bea87475c250b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Wed, 28 Aug 2024 09:50:33 +0100 Subject: [PATCH] Dashboard: Prevent crash on draw after onSaveInstanceState (#4007) --- .../gadgetbridge/activities/DashboardFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DashboardFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DashboardFragment.java index 16ea40061..6e520a320 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DashboardFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DashboardFragment.java @@ -315,7 +315,7 @@ public class DashboardFragment extends Fragment implements MenuProvider { getChildFragmentManager() .beginTransaction() .replace(fragmentId, widgetObj) - .commit(); + .commitAllowingStateLoss(); // FIXME: #4007 GridLayout.LayoutParams layoutParams = new GridLayout.LayoutParams( GridLayout.spec(GridLayout.UNDEFINED, GridLayout.FILL, 1f),