This commit is contained in:
InsanusMokrassar 2021-06-06 02:10:48 +06:00
parent 597e14bc7e
commit 0b16d5c826

View File

@ -1,6 +1,8 @@
package dev.inmo.micro_utils.android.alerts.common package dev.inmo.micro_utils.android.alerts.common
import android.content.Context import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.LayoutInflater import android.view.LayoutInflater
import android.widget.TextView import android.widget.TextView
import androidx.annotation.StringRes import androidx.annotation.StringRes
@ -19,6 +21,10 @@ fun Context.createProgressBarAlertDialog(
findViewById<TextView>(R.id.alertDialogProgressBarTitle).text = it findViewById<TextView>(R.id.alertDialogProgressBarTitle).text = it
} }
} }
}.apply {
window ?.apply {
setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
}
} }
fun Context.createProgressBarAlertDialog( fun Context.createProgressBarAlertDialog(