|
@@ -34,6 +34,7 @@ import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.DialogEntity;
|
|
import com.sheep.gamegroup.model.entity.DialogEntity;
|
|
|
import com.sheep.gamegroup.model.entity.Ext;
|
|
import com.sheep.gamegroup.model.entity.Ext;
|
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.TaskChild;
|
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskReleaseEty;
|
|
import com.sheep.gamegroup.model.entity.TaskReleaseEty;
|
|
|
import com.sheep.gamegroup.model.util.EntityUtils;
|
|
import com.sheep.gamegroup.model.util.EntityUtils;
|
|
@@ -43,8 +44,10 @@ import com.sheep.gamegroup.presenter.TaskDetailPresenter;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.DeviceUtil;
|
|
import com.sheep.gamegroup.util.DeviceUtil;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
|
|
+import com.sheep.gamegroup.util.MyListview;
|
|
|
import com.sheep.gamegroup.util.TimeUtil;
|
|
import com.sheep.gamegroup.util.TimeUtil;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
|
|
+import com.sheep.gamegroup.view.adapter.AdpTaskDetailChildListview;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.gamegroup.absBase.AbsChooseImageActivity;
|
|
import com.sheep.gamegroup.absBase.AbsChooseImageActivity;
|
|
@@ -56,6 +59,8 @@ import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
import org.greenrobot.eventbus.EventBus;
|
|
import org.greenrobot.eventbus.EventBus;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
import javax.inject.Inject;
|
|
import javax.inject.Inject;
|
|
|
|
|
|
|
@@ -94,6 +99,8 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
TextView btnUpImag;
|
|
TextView btnUpImag;
|
|
|
@BindView(R.id.bottom_btn_layout)
|
|
@BindView(R.id.bottom_btn_layout)
|
|
|
LinearLayout bottom_btn_layout;
|
|
LinearLayout bottom_btn_layout;
|
|
|
|
|
+ @BindView(R.id.detail_task_listview)
|
|
|
|
|
+ MyListview detail_task_listview;
|
|
|
private Activity activity;
|
|
private Activity activity;
|
|
|
@Inject
|
|
@Inject
|
|
|
TaskDetailPresenter presenter;
|
|
TaskDetailPresenter presenter;
|
|
@@ -109,6 +116,9 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
private int type;//-1:开始任务 1:下载 2:安装 3:打开 10:打开H5
|
|
private int type;//-1:开始任务 1:下载 2:安装 3:打开 10:打开H5
|
|
|
private boolean isDownLoad = false;//是否下载
|
|
private boolean isDownLoad = false;//是否下载
|
|
|
|
|
|
|
|
|
|
+ private AdpTaskDetailChildListview adpTaskDetailChildListview;
|
|
|
|
|
+ private List<TaskChild> taskChildList = new ArrayList<>();
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
protected int getLayoutId() {
|
|
protected int getLayoutId() {
|
|
@@ -131,6 +141,9 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
.setTitleFinish(activity);
|
|
.setTitleFinish(activity);
|
|
|
Aria.download(this).register();
|
|
Aria.download(this).register();
|
|
|
mDownloadTaskService = new DownloadTaskService(this);
|
|
mDownloadTaskService = new DownloadTaskService(this);
|
|
|
|
|
+ adpTaskDetailChildListview = new AdpTaskDetailChildListview(taskChildList, activity);
|
|
|
|
|
+ detail_task_listview.setAdapter(adpTaskDetailChildListview);
|
|
|
|
|
+ adpTaskDetailChildListview.notifyDataSetChanged();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -218,6 +231,7 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
|
|
|
|
|
private void initWigget(){
|
|
private void initWigget(){
|
|
|
taskEty = taskReleaseEty.getTask();
|
|
taskEty = taskReleaseEty.getTask();
|
|
|
|
|
+ taskChildList.addAll(taskEty.getChild());
|
|
|
downLoadInfo = mDownloadTaskService.getDownloadTaskByUrl(taskEty);
|
|
downLoadInfo = mDownloadTaskService.getDownloadTaskByUrl(taskEty);
|
|
|
webText.setWebChromeClient(new WebChromeClient(){
|
|
webText.setWebChromeClient(new WebChromeClient(){
|
|
|
|
|
|
|
@@ -294,6 +308,15 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
// btnTaskItem.setText("信用卡注册");
|
|
// btnTaskItem.setText("信用卡注册");
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
+ //
|
|
|
|
|
+ if(taskChildList != null && taskChildList.size() > 0){
|
|
|
|
|
+ detail_task_listview.setVisibility(View.VISIBLE);
|
|
|
|
|
+ adpTaskDetailChildListview.notifyDataSetChanged();
|
|
|
|
|
+ }else {
|
|
|
|
|
+
|
|
|
|
|
+ detail_task_listview.setVisibility(View.GONE);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
taskSchedule();
|
|
taskSchedule();
|
|
|
}
|
|
}
|
|
|
|
|
|