Browse Source

fix fetching duplication

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

12
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; if (!fetching) {
postFetchService.fetch(result -> { fetching = true;
fetching = false; postFetchService.fetch(result -> {
fetchListener.onResult(result); fetching = false;
}); fetchListener.onResult(result);
});
}
} }
public void reset() { public void reset() {

|||||||
100:0
Loading…
Cancel
Save