From 4a8bee8a2d414fb4ba24ea0d6ceef0d7c3d2db01 Mon Sep 17 00:00:00 2001 From: "lge6716@gmail.com" Date: Wed, 10 Apr 2024 03:00:58 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20SupplementAddFragment=20=ED=81=B4?= =?UTF-8?q?=EB=9E=98=EC=8A=A4=20uploadImage=20=EB=A9=94=EC=84=9C=EB=93=9C?= =?UTF-8?q?=20=EC=9D=B8=EC=9E=90=20=EA=B0=9C=ED=96=89=20=EB=B0=8F=20?= =?UTF-8?q?=EC=BD=A4=EB=A7=88=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meongcare/supplement/view/SupplementAddFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/project/meongcare/supplement/view/SupplementAddFragment.kt b/app/src/main/java/com/project/meongcare/supplement/view/SupplementAddFragment.kt index 74a4716d..829fb94c 100644 --- a/app/src/main/java/com/project/meongcare/supplement/view/SupplementAddFragment.kt +++ b/app/src/main/java/com/project/meongcare/supplement/view/SupplementAddFragment.kt @@ -392,7 +392,10 @@ class SupplementAddFragment : Fragment(), OnPictureChangedListener { } } - private fun uploadImage(preSignedUrl: String, requestBody: RequestBody) { + private fun uploadImage( + preSignedUrl: String, + requestBody: RequestBody, + ) { awsS3ViewModel.uploadImageToS3(preSignedUrl, requestBody) awsS3ViewModel.uploadImageResponse.observe(viewLifecycleOwner) { response -> if (response == 200) {