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