mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-12-12 23:16:31 +00:00
Null checks. Fixes https://github.com/austinhuang0131/barinsta/issues/303
This commit is contained in:
parent
41e5fecbea
commit
cc930c65b7
1 changed files with 7 additions and 3 deletions
|
|
@ -283,9 +283,13 @@ public class PostsRecyclerView extends RecyclerView {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refresh() {
|
public void refresh() {
|
||||||
lazyLoader.resetState();
|
if (lazyLoader != null) {
|
||||||
postFetcher.reset();
|
lazyLoader.resetState();
|
||||||
postFetcher.fetch();
|
}
|
||||||
|
if (postFetcher != null) {
|
||||||
|
postFetcher.reset();
|
||||||
|
postFetcher.fetch();
|
||||||
|
}
|
||||||
dispatchFetchStatus();
|
dispatchFetchStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue