1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

Dashboard: Prevent crash on draw after onSaveInstanceState (#4007)

This commit is contained in:
José Rebelo 2024-08-28 09:50:33 +01:00
parent bfde77fb3a
commit f746ef42f3

View File

@ -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),