|
|
@@ -1149,7 +1149,8 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
|
|
|
@Override
|
|
|
public void successSlideshow(BaseMessage baseMessage) {
|
|
|
- if (this.getActivity().isDestroyed() || this.isDetached()) return;
|
|
|
+ if (this.getActivity() != null && this.getActivity().isDestroyed() || this.isDetached())
|
|
|
+ return;
|
|
|
boolean isNewData = DataUtil.getInstance().isNewData(ApiKey.slideshow);
|
|
|
if (isNewData) {
|
|
|
List<SlideshowEty> slideshowEtyList = baseMessage.getDataList(SlideshowEty.class);
|
|
|
@@ -1190,7 +1191,8 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
|
|
|
@Override
|
|
|
public void successhomeList(BaseMessage baseMessage) {
|
|
|
- if (this.getActivity().isDestroyed() || this.isDetached()) return;
|
|
|
+ if (this.getActivity() != null && this.getActivity().isDestroyed() || this.isDetached())
|
|
|
+ return;
|
|
|
boolean isNewData = DataUtil.getInstance().isNewData(ApiKey.home_list);
|
|
|
if (isNewData) {
|
|
|
List<HomeListEntity> homeListEntityList = baseMessage.getDataList(HomeListEntity.class);
|
|
|
@@ -1200,7 +1202,8 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
|
|
|
@Override
|
|
|
public void failhomeList(BaseMessage baseMessage) {
|
|
|
- if (this.getActivity().isDestroyed() || this.isDetached()) return;
|
|
|
+ if (this.getActivity() != null && this.getActivity().isDestroyed() || this.isDetached())
|
|
|
+ return;
|
|
|
ViewUtil.setVisibility(home_list_rv, !homeListList.isEmpty());
|
|
|
ViewUtil.setVisibility(full_home_list_rv, !fullHomeList.isEmpty());
|
|
|
}
|