From b75987be470ad7890b030f6c8250dd833c286569 Mon Sep 17 00:00:00 2001 From: unam Date: Thu, 9 Nov 2023 14:25:52 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[FEAT]=20#276=20=EC=BD=94=EC=8A=A4=20?= =?UTF-8?q?=EC=A0=9C=EB=AA=A9=20=EC=9E=85=EB=A0=A5=20=ED=9B=84=20=ED=82=A4?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=EB=82=B4=EB=A6=AC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/runnect/runnect/presentation/draw/DrawActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt index 9cb9c6ae7..da0794de8 100644 --- a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt +++ b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt @@ -1,5 +1,6 @@ package com.runnect.runnect.presentation.draw +import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.graphics.Color @@ -11,6 +12,7 @@ import android.view.View import android.view.ViewGroup import android.view.animation.Animation import android.view.animation.AnimationUtils +import android.view.inputmethod.InputMethodManager import android.widget.Toast import androidx.activity.viewModels import androidx.core.content.FileProvider @@ -311,6 +313,9 @@ class DrawActivity : } btnCreateCourse.setOnClickListener { + val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager + imm.hideSoftInputFromWindow(etCourseName.windowToken, 0) + createMbr() } From 4f9ee4fcf4b56372e164dbd45804a92c8b8a6036 Mon Sep 17 00:00:00 2001 From: unam Date: Fri, 10 Nov 2023 14:48:45 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[MOD]=20#276=20=ED=82=A4=EB=B3=B4=EB=93=9C?= =?UTF-8?q?=20=EB=82=B4=EB=A6=AC=EA=B8=B0=20=ED=99=95=EC=9E=A5=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=ED=99=9C=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/runnect/runnect/presentation/draw/DrawActivity.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt index da0794de8..cf5caaee3 100644 --- a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt +++ b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt @@ -47,6 +47,7 @@ import com.runnect.runnect.presentation.countdown.CountDownActivity import com.runnect.runnect.presentation.login.LoginActivity import com.runnect.runnect.presentation.state.UiState import com.runnect.runnect.util.DepartureSetMode +import com.runnect.runnect.util.extension.hideKeyboard import com.runnect.runnect.util.extension.setActivityDialog import com.runnect.runnect.util.multipart.ContentUriRequestBody import dagger.hilt.android.AndroidEntryPoint @@ -313,9 +314,7 @@ class DrawActivity : } btnCreateCourse.setOnClickListener { - val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager - imm.hideSoftInputFromWindow(etCourseName.windowToken, 0) - + hideKeyboard(etCourseName) createMbr() } From ea6f52e46a4109c61ca54c128e16a077f32de2f8 Mon Sep 17 00:00:00 2001 From: unam Date: Fri, 10 Nov 2023 15:06:56 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[MOD]=20#276=20=EC=BD=94=EC=8A=A4=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EB=B2=84=ED=8A=BC=20=ED=81=B4=EB=A6=AD=20?= =?UTF-8?q?=EC=8B=9C=20=ED=95=98=EB=8B=A8=20Dialog=20dismiss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/runnect/runnect/presentation/draw/DrawActivity.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt index cf5caaee3..a59591abc 100644 --- a/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt +++ b/app/src/main/java/com/runnect/runnect/presentation/draw/DrawActivity.kt @@ -313,14 +313,15 @@ class DrawActivity : Timber.tag("EditTextValue").d("${viewModel.departureName.value}") } + val bottomSheetDialog = BottomSheetDialog(this) + bottomSheetDialog.setContentView(bottomSheetView) + btnCreateCourse.setOnClickListener { hideKeyboard(etCourseName) + bottomSheetDialog.dismiss() createMbr() } - val bottomSheetDialog = BottomSheetDialog(this) - bottomSheetDialog.setContentView(bottomSheetView) - return bottomSheetDialog }