fix: NPE when fragment is empty and HomeTabFragment is checking isScrolledToTop()
This commit is contained in:
@@ -633,7 +633,7 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isScrolledToTop() {
|
public boolean isScrolledToTop() {
|
||||||
return list.getChildAt(0).getTop() == 0;
|
return list.getChildAt(0) == null || list.getChildAt(0).getTop() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getListWidthForMediaLayout(){
|
protected int getListWidthForMediaLayout(){
|
||||||
|
|||||||
Reference in New Issue
Block a user