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

Commit

Permalink
[android] #3891 - proper indeterminate -> precise transition
Browse files Browse the repository at this point in the history
  • Loading branch information
zugaldia committed Feb 25, 2016
1 parent 9738f40 commit fbaa9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public long getRequiredResourceCount() {
}

public boolean isRequiredResourceCountPrecise() {
return requiredResourceCountIsIndeterminate;
return !requiredResourceCountIsIndeterminate;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public void onStatusChanged(OfflineRegionStatus status) {
// Download complete
endProgress("Region downloaded successfully.");
return;
} else if (!status.isRequiredResourceCountPrecise()) {
} else if (status.isRequiredResourceCountPrecise()) {
// Switch to determinate state
setPercentage((int) Math.round(percentage));
}
Expand Down

0 comments on commit fbaa9ea

Please sign in to comment.