From a35f00293a022d2fb491cf61aeba1aacd55cfe21 Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 18 Nov 2024 13:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E7=85=A7=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/DeviceRepairInfoActivity.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java b/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java index e168fb5..aa2b9ae 100644 --- a/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java +++ b/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java @@ -3,6 +3,7 @@ package com.example.jingyuan_mes.device; import androidx.appcompat.app.AppCompatActivity; import androidx.databinding.DataBindingUtil; +import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.util.Log; @@ -29,6 +30,7 @@ import com.google.gson.reflect.TypeToken; import com.lzy.okgo.OkGo; import com.lzy.okgo.model.Response; +import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -83,17 +85,12 @@ public class DeviceRepairInfoActivity extends BaseActivity implements DisposalFi designOperations= designOperations.replace(tagStr,"") .replace(addStr,""); deviceRepair.setDesignOperations(designOperations); - }else { deviceRepair.setDesignOperations(Optional.ofNullable(designOperations).map(t ->t.isEmpty()?t: t + ",").orElse("") + addStr); } - - - - opeLpw.dismiss(); }); initRequest("dms_fault_type"); @@ -274,5 +271,16 @@ public class DeviceRepairInfoActivity extends BaseActivity implements DisposalFi } + @SuppressLint("NotifyDataSetChanged") + @Override + public void tekePhotoResult(String fileUrl, File file) { + super.tekePhotoResult(fileUrl, file); + CheckInstanceFiles checkInstanceFiles = new CheckInstanceFiles(); + checkInstanceFiles.setFaultFile(fileUrl); + checkInstanceFiles.setState(true); + filesList.add(checkInstanceFiles); + fileAdapter.notifyDataSetChanged(); + // files.add(file); + } } \ No newline at end of file