app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt
@@ -5,10 +5,10 @@
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import cn.flightfeather.thirdapp.CommonApplication
import cn.flightfeather.thirdapp.bean.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.Scense
import cn.flightfeather.thirdapp.bean.Subtask
import cn.flightfeather.thirdapp.bean.Task
import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion
import cn.flightfeather.thirdapp.bean.entity.Scense
import cn.flightfeather.thirdapp.bean.entity.Subtask
import cn.flightfeather.thirdapp.bean.entity.Task
import cn.flightfeather.thirdapp.bean.vo.TaskVo
import cn.flightfeather.thirdapp.common.net.ResultCallBack
import cn.flightfeather.thirdapp.model.event.TopTaskEvent
@@ -169,6 +169,10 @@
     * 根据所选场景类型及是否监管刷新场景
     */
    fun refreshScene() {
        //sceneTypeList会根据联网获取的场景变更内容,此处判断保证下标不会越界
        if (selectedTypeIndex >= sceneTypeList.size) {
            selectedTypeIndex = 0
        }
        //筛选场景类型
        val tmp = ArrayList<Scense>()
        if (selectedTypeIndex == 0) {