mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-23 05:16:58 +00:00
Null checks. Fixes https://github.com/austinhuang0131/barinsta/issues/303
This commit is contained in:
parent
41e5fecbea
commit
cc930c65b7
@ -283,9 +283,13 @@ public class PostsRecyclerView extends RecyclerView {
|
||||
}
|
||||
|
||||
public void refresh() {
|
||||
lazyLoader.resetState();
|
||||
postFetcher.reset();
|
||||
postFetcher.fetch();
|
||||
if (lazyLoader != null) {
|
||||
lazyLoader.resetState();
|
||||
}
|
||||
if (postFetcher != null) {
|
||||
postFetcher.reset();
|
||||
postFetcher.fetch();
|
||||
}
|
||||
dispatchFetchStatus();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user