[android] destroyOfflineRegion must not delete an already-deleted peer

This commit is contained in:
John Firebaugh
2016-03-04 17:49:28 -08:00
parent 0386aeea22
commit 6aa8be56f6
2 changed files with 8 additions and 3 deletions

View File

@@ -222,6 +222,8 @@ public class OfflineRegion {
*
* When the operation is complete or encounters an error, the given callback will be
* executed on the main thread.
*
* After you call this method, you may not call any additional methods on this object.
*/
public void delete(@NonNull final OfflineRegionDeleteCallback callback) {
deleteOfflineRegion(this, new OfflineRegionDeleteCallback() {