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.setRetainInstance(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Map<OsmPoint, String> loadErrorsMap) {
|
||||
if (progress != null && progress.isResumed()) {
|
||||
if (progress != null) {
|
||||
progress.dismissAllowingStateLoss();
|
||||
}
|
||||
listener.uploadEnded(loadErrorsMap);
|
||||
|
|
Loading…
Reference in a new issue