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

Commit

Permalink
[android] fix is download complete (a download is complete when count…
Browse files Browse the repository at this point in the history
… and required resources match and the download state is inactive) (#9913)
  • Loading branch information
Guardiola31337 authored and tobrun committed Sep 25, 2017
1 parent 4b54ab8 commit 1190683
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private OfflineRegionStatus(int downloadState, long completedResourceCount,
* @return true if download is complete, false if not
*/
public boolean isComplete() {
return (completedResourceCount == requiredResourceCount);
return (completedResourceCount == requiredResourceCount) && downloadState == OfflineRegion.STATE_INACTIVE;
}

/**
Expand Down

0 comments on commit 1190683

Please sign in to comment.