summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharath MG <mgbharath@ymail.com>2018-10-22 15:16:53 +0530
committerTobrun <tobrun@mapbox.com>2018-10-24 13:57:21 +0200
commitaf69d85f4eed5f496ffa39056c125d75ebf1f25f (patch)
tree897e3ab6a29bedf83af23fbe8ae02c65b6992ad1
parent9b351565ebd223bb20d95a0f4726b1474b92bdd4 (diff)
downloadqtlocation-mapboxgl-af69d85f4eed5f496ffa39056c125d75ebf1f25f.tar.gz
File deactivate should be called before callbacks
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
index d4335d1d7a..7bcc6ad234 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
@@ -331,8 +331,8 @@ public class OfflineRegion {
handler.post(new Runnable() {
@Override
public void run() {
- callback.onStatus(status);
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
+ callback.onStatus(status);
}
});
}
@@ -342,8 +342,8 @@ public class OfflineRegion {
handler.post(new Runnable() {
@Override
public void run() {
- callback.onError(error);
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
+ callback.onError(error);
}
});
}
@@ -377,8 +377,8 @@ public class OfflineRegion {
handler.post(new Runnable() {
@Override
public void run() {
- callback.onDelete();
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
+ callback.onDelete();
OfflineRegion.this.finalize();
}
});