From 018cf397b8e3b23509c2b0c978bb976de9da4d3e Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 22 Dec 2014 13:15:51 +0200 Subject: [PATCH] Hotfix to IllegalState exception in dashDownloadMapsFragment --- .../net/osmand/plus/dashboard/DashDownloadMapsFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java index 30b5a35146..a34bce2a2e 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java @@ -84,7 +84,7 @@ public class DashDownloadMapsFragment extends DashBaseFragment { } protected void updateCount(String s) { - if (DashDownloadMapsFragment.this.isDetached()){ + if (!DashDownloadMapsFragment.this.isAdded()){ return; } File ms = getMyApplication().getAppPath(s); @@ -104,7 +104,7 @@ public class DashDownloadMapsFragment extends DashBaseFragment { @Override protected void onPostExecute(Void result) { super.onPostExecute(result); - if (DashDownloadMapsFragment.this.isDetached()){ + if (!DashDownloadMapsFragment.this.isAdded()){ return; } if(countMaps > 0) {