Browse Source
fix fetching duplication
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
7 additions and
5 deletions
-
app/src/main/java/awais/instagrabber/customviews/helpers/PostFetcher.java
|
@ -17,11 +17,13 @@ public class PostFetcher { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void fetch() { |
|
|
public void fetch() { |
|
|
fetching = true; |
|
|
|
|
|
postFetchService.fetch(result -> { |
|
|
|
|
|
fetching = false; |
|
|
|
|
|
fetchListener.onResult(result); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (!fetching) { |
|
|
|
|
|
fetching = true; |
|
|
|
|
|
postFetchService.fetch(result -> { |
|
|
|
|
|
fetching = false; |
|
|
|
|
|
fetchListener.onResult(result); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void reset() { |
|
|
public void reset() { |
|
|