From 4a17b866085a9f7192d9f6a468adb61c286a0afc Mon Sep 17 00:00:00 2001 From: JSPark <48265129+pknujsp@users.noreply.github.com> Date: Wed, 31 May 2023 23:18:34 +0900 Subject: [PATCH] =?UTF-8?q?#91=20=EB=A1=9C=EB=94=A9=20=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EC=96=BC=EB=A1=9C=EA=B7=B8=20=EB=9D=BC=EC=9A=B4=EB=93=9C=20?= =?UTF-8?q?=EC=BD=94=EB=84=88=20=EB=AF=B8=ED=91=9C=EC=8B=9C=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/common/dialog/ProgressDialog.kt | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/core/common/src/main/java/com/android/mediproject/core/common/dialog/ProgressDialog.kt b/core/common/src/main/java/com/android/mediproject/core/common/dialog/ProgressDialog.kt index 3a6f1a0db..2f757996f 100644 --- a/core/common/src/main/java/com/android/mediproject/core/common/dialog/ProgressDialog.kt +++ b/core/common/src/main/java/com/android/mediproject/core/common/dialog/ProgressDialog.kt @@ -1,8 +1,8 @@ package com.android.mediproject.core.common.dialog import android.content.Context -import android.view.ViewGroup import androidx.appcompat.app.AlertDialog +import com.google.android.material.dialog.MaterialAlertDialogBuilder object LoadingDialog { @@ -10,23 +10,14 @@ object LoadingDialog { fun showLoadingDialog(context: Context, textMessage: String?) { dismiss() - AlertDialog.Builder(context).setView(ProgressIndicator(context, textMessage)).setCancelable(false).create().also { - it.window?.apply { - setClipToOutline(true) - setElevation(8f) - // shadow - - attributes = attributes.apply { - width = ViewGroup.LayoutParams.WRAP_CONTENT - height = ViewGroup.LayoutParams.WRAP_CONTENT - dimAmount = 0.5f - } + MaterialAlertDialogBuilder(context).setView(ProgressIndicator(context, textMessage)) + .setCancelable(false).create().also { + it.setCanceledOnTouchOutside(false) + it.window?.setBackgroundDrawableResource(android.R.color.transparent) + dismiss() + dialog = it + it.show() } - it.setCanceledOnTouchOutside(false) - dismiss() - dialog = it - it.show() - } }