From ea51f638793920ce910ec36868227a62db9061b9 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Fri, 22 Sep 2023 17:33:03 +0800 Subject: [PATCH] =?UTF-8?q?[6.1.0]=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=8C=85?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=AD=E5=8B=BE=E9=80=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=B8=8A=E6=8A=A5=EF=BC=8C=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E7=9F=AD=E6=97=B6=E9=97=B4=E5=86=85=E8=BF=98?= =?UTF-8?q?=E8=83=BD=E4=B8=8A=E6=8A=A5Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../badcase/biz/adapter/BagManagerListAdapter.kt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/biz/adapter/BagManagerListAdapter.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/biz/adapter/BagManagerListAdapter.kt index 381aefa746..e8b1f34210 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/biz/adapter/BagManagerListAdapter.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/biz/adapter/BagManagerListAdapter.kt @@ -96,10 +96,12 @@ class BagManagerListAdapter: RecyclerView.Adapter() { //已上报 holder.tvBagReportStatus.text = "已上报" holder.tvBagReportStatus.setBackgroundResource(R.drawable.bag_reported_button_bg) + holder.tvBagReportStatus.isClickable = false }else{ //未上报 holder.tvBagReportStatus.text = "上报" holder.tvBagReportStatus.setBackgroundResource(R.drawable.bag_report_button_bg) + holder.tvBagReportStatus.isClickable = true holder.tvBagReportStatus.setOnClickListener { bagClickListener?.uploadBI(bagInfoEntity) } @@ -127,11 +129,15 @@ class BagManagerListAdapter: RecyclerView.Adapter() { holder.tvBagSize.text = "${bagSize}G" //时间 - bagInfoEntity.timestamp?.let { time-> - val hour = time.substring(8,10) - val min = time.substring(10,12) - val second = time.substring(12,14) - holder.tvBagTime.text = "${hour}:${min}:${second}" + bagInfoEntity.timestamp.let { time-> + try { + val hour = time.substring(8,10) + val min = time.substring(10,12) + val second = time.substring(12,14) + holder.tvBagTime.text = "${hour}:${min}:${second}" + }catch (e: Exception){ + e.printStackTrace() + } } } }