From 43242c8e7915b968bb7a6f3f22bded7704f0e40f Mon Sep 17 00:00:00 2001
From: feiyu02 <feiyu02@163.com>
Date: 星期二, 01 九月 2020 09:55:06 +0800
Subject: [PATCH] 1. 修复问题修改界面问题子项无法显示为原纪录的问题

---
 app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt b/app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt
index 3e46fba..7d00dd7 100644
--- a/app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt
+++ b/app/src/main/java/cn/flightfeather/thirdapp/module/task/NewSubTaskViewModel.kt
@@ -169,6 +169,10 @@
      * 鏍规嵁鎵�閫夊満鏅被鍨嬪強鏄惁鐩戠鍒锋柊鍦烘櫙
      */
     fun refreshScene() {
+        //sceneTypeList浼氭牴鎹仈缃戣幏鍙栫殑鍦烘櫙鍙樻洿鍐呭锛屾澶勫垽鏂繚璇佷笅鏍囦笉浼氳秺鐣�
+        if (selectedTypeIndex >= sceneTypeList.size) {
+            selectedTypeIndex = 0
+        }
         //绛涢�夊満鏅被鍨�
         val tmp = ArrayList<Scense>()
         if (selectedTypeIndex == 0) {

--
Gitblit v1.9.3