From a5d862051462a5fcc2717b405896a6d424002e54 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 22 十二月 2020 15:43:06 +0800
Subject: [PATCH] 1. 调整了数控实体的存储位置; 2. 新增数据表“媒体文件类型别名表”; 3. 修改任意拍模块,将图片分类改为根据场景类型动态生成,同时新增修改分类别名功能; 4. 优化子任务选择界面的任务排序方式,按照“待开始”、“执行中”、“未执行”的顺序进行排序;
---
app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt b/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt
index 105a3cc..b128573 100644
--- a/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt
+++ b/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuEvidenceActivity.kt
@@ -12,7 +12,7 @@
import cn.flightfeather.thirdapp.R
import cn.flightfeather.thirdapp.adapter.DomainItemListAdapter
import cn.flightfeather.thirdapp.adapter.ProblemTypeListAdapter
-import cn.flightfeather.thirdapp.bean.*
+import cn.flightfeather.thirdapp.bean.entity.*
import cn.flightfeather.thirdapp.model.event.ProblemEvent
import cn.flightfeather.thirdapp.module.base.BaseTakePicActivity
import cn.flightfeather.thirdapp.util.DateFormatter
@@ -158,7 +158,7 @@
toast("褰撳墠宸℃煡鐘舵�侀敊璇紝鏃犳硶涓婁紶闂锛岃灏濊瘯閲嶆柊鍚姩")
}
- val problemType = sp_take_evidence_select_problem_type.selectedItem.toString()
+ val problemType = sp_take_evidence_select_problem_type.selectedItem?.toString()
val pro = Problemlist().apply {
guid = UUIDGenerator.generate16ShortUUID()
@@ -171,26 +171,26 @@
val p = sp_take_evidence_select_problem.selectedItem
if (p is Problemtype) {
ptguid = p.guid
- var problemDes = et_take_evidence_problem_des.text.toString()
+ var problemDes = et_take_evidence_problem_des?.text.toString()
if (problemDes.isNotEmpty()) {
problemDes = "($problemDes)"
}
problemname = p.name + problemDes
}
- var adviceDes = et_take_evidence_suggestion.text.toString()
+ var adviceDes = et_take_evidence_suggestion?.text.toString()
if (adviceDes.isNotEmpty()) {
adviceDes = "($adviceDes)"
}
- advise = sp_take_evidence_select_suggestion.selectedItem.toString() + adviceDes
+ advise = sp_take_evidence_select_suggestion.selectedItem?.toString() + adviceDes
latitude = lat
longitude = lng
val l = sp_take_evidence_select_location.selectedItem
if (l is Domainitem) {
if (problemType != "鎬佸害") {
- var locationRemark = et_take_evidence_location.text.toString()
- if (locationRemark.isNotEmpty()) {
+ var locationRemark = et_take_evidence_location.text?.toString()
+ if (locationRemark?.isNotEmpty() == true) {
locationRemark = "($locationRemark)"
}
locationid = l.index.toByte()
--
Gitblit v1.9.3