add setRetainInstance for keeping progressDialog and it`s fragmentManager
This commit is contained in:
parent
bc3745e28d
commit
dc6217c9aa
1 changed files with 2 additions and 1 deletions
|
@ -91,11 +91,12 @@ public class UploadOpenstreetmapPointAsyncTask
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
progress.setMax(listSize);
|
progress.setMax(listSize);
|
||||||
|
progress.setRetainInstance(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Map<OsmPoint, String> loadErrorsMap) {
|
protected void onPostExecute(Map<OsmPoint, String> loadErrorsMap) {
|
||||||
if (progress != null && progress.isResumed()) {
|
if (progress != null) {
|
||||||
progress.dismissAllowingStateLoss();
|
progress.dismissAllowingStateLoss();
|
||||||
}
|
}
|
||||||
listener.uploadEnded(loadErrorsMap);
|
listener.uploadEnded(loadErrorsMap);
|
||||||
|
|
Loading…
Reference in a new issue