Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
File deactivate should be called before callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
BharathMG authored and tobrun committed Oct 24, 2018
1 parent 9b35156 commit af69d85
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ public void onStatus(final OfflineRegionStatus status) {
handler.post(new Runnable() {
@Override
public void run() {
callback.onStatus(status);
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
callback.onStatus(status);
}
});
}
Expand All @@ -342,8 +342,8 @@ public void onError(final String error) {
handler.post(new Runnable() {
@Override
public void run() {
callback.onError(error);
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
callback.onError(error);
}
});
}
Expand Down Expand Up @@ -377,8 +377,8 @@ public void onDelete() {
handler.post(new Runnable() {
@Override
public void run() {
callback.onDelete();
FileSource.getInstance(Mapbox.getApplicationContext()).deactivate();
callback.onDelete();
OfflineRegion.this.finalize();
}
});
Expand Down

0 comments on commit af69d85

Please sign in to comment.