From e102578ebfc95c27aeb13dce13fb82af53a2bead Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 25 二月 2021 17:07:23 +0800
Subject: [PATCH] 1. 新增夜间施工查询界面 2. 新增夜间施工管理统计界面

---
 app/src/main/java/cn/flightfeather/thirdapp/module/base/BaseTakePicActivity.kt |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/cn/flightfeather/thirdapp/module/base/BaseTakePicActivity.kt b/app/src/main/java/cn/flightfeather/thirdapp/module/base/BaseTakePicActivity.kt
index 9e0f1a3..9c15188 100644
--- a/app/src/main/java/cn/flightfeather/thirdapp/module/base/BaseTakePicActivity.kt
+++ b/app/src/main/java/cn/flightfeather/thirdapp/module/base/BaseTakePicActivity.kt
@@ -12,6 +12,7 @@
 import cn.flightfeather.thirdapp.util.UUIDGenerator
 import cn.flightfeather.thirdapp.util.file.FileUtil
 import cn.flightfeather.thirdapp.util.photo.PhotoUtil
+import com.bumptech.glide.Glide
 import com.lcw.library.imagepicker.ImagePicker
 import org.jetbrains.anko.toast
 import java.io.File
@@ -91,9 +92,11 @@
             when {
                 i < picSize -> {
                     imageViewList[i].setOnClickListener(viewPhotoClickListener(i))
-                    // fixme: 2019/8/2 姝ゅ缁檌mageVIew璁剧疆鍥剧墖鍦ㄥ師浠g爜涓槸鑷畾涔変簡涓�涓狝syncTask锛屼箣鍚庡彲浠ョ敤Glide绛夌涓夋柟妗嗘灦鏇夸唬
                     imageViewList[i].scaleType = ImageView.ScaleType.CENTER_CROP
-                    SetImageTask(pathTempList[i].first, imageViewList[i]).execute()
+                    Glide.with(this)
+                            .load(pathTempList[i].first)
+                            .placeholder(R.drawable.icon_add_photo_waite)
+                            .into(imageViewList[i])
                 }
                 i == picSize -> imageViewList[i].run {
                     setOnClickListener(takePhotoClickListener(i))
@@ -130,7 +133,7 @@
         return View.OnClickListener {
             val t = imageViewList.size - pathTempList.size
             val picNum = if (t >= 0) t else 0
-            PhotoUtil.pickPhoto(this, TAKE_PHOTO, picNum)
+            PhotoUtil.pickPhoto2(this, TAKE_PHOTO, picNum)
         }
     }
 

--
Gitblit v1.9.3