1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +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() getChildFragmentManager()
.beginTransaction() .beginTransaction()
.replace(fragmentId, widgetObj) .replace(fragmentId, widgetObj)
.commit(); .commitAllowingStateLoss(); // FIXME: #4007
GridLayout.LayoutParams layoutParams = new GridLayout.LayoutParams( GridLayout.LayoutParams layoutParams = new GridLayout.LayoutParams(
GridLayout.spec(GridLayout.UNDEFINED, GridLayout.FILL, 1f), GridLayout.spec(GridLayout.UNDEFINED, GridLayout.FILL, 1f),