mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
fix fetching duplication
This commit is contained in:
parent
bf9dcacd40
commit
e32002fac8
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user