| | |
| | | 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 |
| | |
| | | |
| | | 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 |
| | | |
| | |
| | | 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() |