|
@@ -210,7 +210,7 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
|
|
|
|
|
private void initBannerAct() {
|
|
private void initBannerAct() {
|
|
|
gameActList.clear();
|
|
gameActList.clear();
|
|
|
- play_game_act.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(play_game_act);
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().gameBannerAct()
|
|
SheepApp.getInstance().getNetComponent().getApiService().gameBannerAct()
|
|
|
.subscribeOn(Schedulers.io())
|
|
.subscribeOn(Schedulers.io())
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
@@ -221,7 +221,7 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
|
gameActList.addAll(newList);
|
|
gameActList.addAll(newList);
|
|
|
}
|
|
}
|
|
|
- play_game_act.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(play_game_act);
|
|
|
notifyDataSetChanged();
|
|
notifyDataSetChanged();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -235,7 +235,7 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
//天天更新、重点推荐
|
|
//天天更新、重点推荐
|
|
|
private void initRecommendList() {
|
|
private void initRecommendList() {
|
|
|
gameListTypeList2List.clear();
|
|
gameListTypeList2List.clear();
|
|
|
- play_game_list_2_rv.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(play_game_list_2_rv);
|
|
|
Observable.fromIterable(gameListTypeList2)
|
|
Observable.fromIterable(gameListTypeList2)
|
|
|
.subscribe(new AbsObserver<GameListType>() {
|
|
.subscribe(new AbsObserver<GameListType>() {
|
|
|
@Override
|
|
@Override
|
|
@@ -249,7 +249,7 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
List<GameRecommend> newList = baseMessage.getDatas(GameRecommend.class);
|
|
List<GameRecommend> newList = baseMessage.getDatas(GameRecommend.class);
|
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
|
gameListTypeList2List.add(new ListTypeList<>(gameListType, newList));
|
|
gameListTypeList2List.add(new ListTypeList<>(gameListType, newList));
|
|
|
- play_game_list_2_rv.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(play_game_list_2_rv);
|
|
|
notifyDataSetChanged();
|
|
notifyDataSetChanged();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -266,11 +266,11 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
//预下载下面的tagList
|
|
//预下载下面的tagList
|
|
|
private void initGameTagList() {
|
|
private void initGameTagList() {
|
|
|
gameEntityListx.clear();
|
|
gameEntityListx.clear();
|
|
|
- play_game_list_x_rv.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(play_game_list_x_rv);
|
|
|
//预下载
|
|
//预下载
|
|
|
GameListType gameListType = new GameListType();
|
|
GameListType gameListType = new GameListType();
|
|
|
gameListType.setTitle("预下载");
|
|
gameListType.setTitle("预下载");
|
|
|
- gameListType.setDownload_type(1);
|
|
|
|
|
|
|
+ gameListType.setDownload_type(GameListType.T_DOWNLOAD_TYPE_YES);
|
|
|
initGameList(play_game_list_x_rv, gameEntityListx, gameListType);
|
|
initGameList(play_game_list_x_rv, gameEntityListx, gameListType);
|
|
|
//其它tag
|
|
//其它tag
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().getGameTagList()
|
|
SheepApp.getInstance().getNetComponent().getApiService().getGameTagList()
|
|
@@ -414,7 +414,7 @@ public class FgtPlayGame extends BaseFragment {
|
|
|
List<GameEntity> newList = baseMessage.getDatas(GameEntity.class);
|
|
List<GameEntity> newList = baseMessage.getDatas(GameEntity.class);
|
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
if (!ListUtil.isEmpty(newList)) {
|
|
|
gameEntityListList.add(new ListTypeList<>(gameListType, newList));
|
|
gameEntityListList.add(new ListTypeList<>(gameListType, newList));
|
|
|
- playGameListRv.getAdapter().notifyDataSetChanged();
|
|
|
|
|
|
|
+ ViewUtil.notifyDataSetChanged(playGameListRv);
|
|
|
}
|
|
}
|
|
|
notifyDataSetChanged();
|
|
notifyDataSetChanged();
|
|
|
}
|
|
}
|