Hotfix to IllegalState exception in dashDownloadMapsFragment

This commit is contained in:
Denis 2014-12-22 13:15:51 +02:00
parent 6b7474601b
commit 018cf397b8

View file

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