|
|
@@ -1266,16 +1266,12 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
* 新手任务
|
|
|
*/
|
|
|
private void addNewTask(){
|
|
|
-// if(onResumeCount == 0 && CommonUtil.getInstance().addNewTask(activity,userEntity) && homeListEntitysGridview != null)//第一次才调用
|
|
|
- {
|
|
|
- HomeListEntity homeListEntity = new HomeListEntity();
|
|
|
- homeListEntity.setTitle("新手任务");
|
|
|
- homeListEntity.setDesc("新手任务");
|
|
|
- homeListEntity.setJump("-1");
|
|
|
- homeListEntity.setIcon(R.mipmap.homepage_xinshourw+"");
|
|
|
- homeListEntitys.add(0, homeListEntity);
|
|
|
-
|
|
|
- }
|
|
|
+ HomeListEntity homeListEntityNewTask = new HomeListEntity();
|
|
|
+ homeListEntityNewTask.setTitle("新手任务");
|
|
|
+ homeListEntityNewTask.setDesc("新手任务");
|
|
|
+ homeListEntityNewTask.setJump("-1");
|
|
|
+ homeListEntityNewTask.setIcon(R.mipmap.homepage_xinshourw+"");
|
|
|
+ homeListEntitys.add(0, homeListEntityNewTask);
|
|
|
if(homeListEntitys.size() > 8){
|
|
|
HomeListEntity homeListEntity = new HomeListEntity();
|
|
|
homeListEntity.setTitle("查看更多");
|
|
|
@@ -1284,7 +1280,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
homeListEntity.setIcon(R.mipmap.homepage_chakangd+"");
|
|
|
homeListEntitys.add(7, homeListEntity);
|
|
|
}
|
|
|
- onResumeCount++;
|
|
|
setValueList(false);
|
|
|
}
|
|
|
|