From 23935bc2394a2ab1ee19139c121cb4c06db6b66e Mon Sep 17 00:00:00 2001 From: CraZyLegenD Date: Thu, 4 Apr 2019 11:36:42 +0200 Subject: [PATCH] progress dialog hiding --- .../kotlinextensions/codestyle/BaseAbstractActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/codestyle/BaseAbstractActivity.kt b/kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/codestyle/BaseAbstractActivity.kt index 826982a5f..0b922d1ce 100644 --- a/kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/codestyle/BaseAbstractActivity.kt +++ b/kotlinextensions/src/main/java/com/crazylegend/kotlinextensions/codestyle/BaseAbstractActivity.kt @@ -95,6 +95,10 @@ abstract class BaseAbstractActivity : AppCompatActivity() { private var progressDialog: AlertDialog? = null + fun dismissProgressDialog(){ + progressDialog?.dismiss() + } + override fun onPause() { super.onPause() progressDialog?.dismiss()