Browse Source

fix fetching duplication

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
e32002fac8
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/customviews/helpers/PostFetcher.java

2
app/src/main/java/awais/instagrabber/customviews/helpers/PostFetcher.java

@ -17,12 +17,14 @@ public class PostFetcher {
}
public void fetch() {
if (!fetching) {
fetching = true;
postFetchService.fetch(result -> {
fetching = false;
fetchListener.onResult(result);
});
}
}
public void reset() {
postFetchService.reset();

Loading…
Cancel
Save