app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuNewGitActivity.kt
@@ -27,6 +27,10 @@
import cn.flightfeather.thirdapp.util.file.FileUtil
import com.ping.greendao.gen.GittypeDao
import kotlinx.android.synthetic.main.dialog_camera.*
import kotlinx.android.synthetic.main.dialog_camera.fab_problem_list_close
import kotlinx.android.synthetic.main.dialog_camera.iv_new_photo
import kotlinx.android.synthetic.main.dialog_camera.tv_title
import kotlinx.android.synthetic.main.dialog_camera_2.*
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.Callback
@@ -42,7 +46,7 @@
    override fun getImageViews(): MutableList<ImageView> = mutableListOf()
    override fun getLayoutId(): Int = R.layout.dialog_camera
    override fun getLayoutId(): Int = R.layout.dialog_camera_2
    lateinit var viewModel: MenuNewGitViewModel
@@ -88,7 +92,7 @@
                    intent.putExtra("gitlistVo", viewModel.gitList.value?.get(position))
                    intent.putExtra("subTask", subTask)
                    intent.putExtra("inspectionGuid", inspection?.guid)
                    intent.putExtra("scenseAddress", "${scene?.cityname ?: ""} + ${scene?.districtname?:""} + ${scene?.townname?:""} + ${scene?.location?:""}")
                    intent.putExtra("scenseAddress", "${scene?.cityname ?: ""}${scene?.districtname?:""}${scene?.townname?:""}${scene?.location?:""}")
                    startActivity(intent)
                }
@@ -227,7 +231,8 @@
                    override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) {
                        if (response.body() != null) {
                            Toast.makeText(application, "提交成功", Toast.LENGTH_SHORT).show()
                            for (oldfile in pathTempList) {
                            for (l in pathTempList) {
                                val oldfile = l.first
                                val fileName = gitSelected.name + " " + UUIDGenerator.generateUUID(4) + ".jpg"
                                val mediafile = Mediafile()
                                mediafile.guid = UUIDGenerator.generate16ShortUUID()