Skip to content

Commit

Permalink
SubjectAdder.downloadMissingImages(): Don't try if there is no network.
Browse files Browse the repository at this point in the history
We already ignore the exception in the caller, because it is normal,
though we didn't actually throw the exception.
The lack of a check here might have caused us to download missing images,
though not new images, while not on wifi even while the wifi-only
setting was on.
  • Loading branch information
murraycu committed Dec 4, 2014
1 parent 026d0ff commit d0f0682
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public SubjectAdder(final Context context, final RequestQueue requestQueue) {
boolean downloadMissingImages() {
boolean noWorkNeeded = true;

throwIfNoNetwork();

//Get all the items that have an image that is not yet fully downloaded:
final ContentResolver resolver = getContext().getContentResolver();

Expand Down

0 comments on commit d0f0682

Please sign in to comment.