From dbbd9e1bc3084ff468ad16e6db07804406b96505 Mon Sep 17 00:00:00 2001 From: Sergey Kharchenko Date: Thu, 27 Jul 2023 18:52:06 +0300 Subject: [PATCH] #17739: Fixed crash when changing system theme --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 162a57a2893..771bcdc70d3 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -2216,7 +2216,7 @@ public void onConfigurationChanged(@NonNull Configuration newConfig) { .beginTransaction() .detach(fragment) .attach(fragment) - .commit(); + .commitAllowingStateLoss(); } DashboardOnMap dashboard = getDashboard();