File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
baselib/src/main/kotlin/wsdydeni/library/android/base Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ open class BaseActivity : AppCompatActivity {
8585 Toast .makeText(this @BaseActivity, it.text, Toast .LENGTH_SHORT ).show()
8686 is DialogShowEffect -> {
8787 if (! isFinishing && ! isDestroyed) {
88+ // https://juejin.cn/post/7000976804634689573
8889 baseHandler.post {
8990 if (! isFinishing && ! isDestroyed) {
9091 loadingDialog?.let { dialog ->
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import kotlinx.coroutines.launch
99import wsdydeni.library.android.utils.another.LogUtil
1010import wsdydeni.library.android.utils.network.isNetworkAvailable
1111import wsdydeni.library.android.view.LoadingDialog
12+ import wsdydeni.library.android.utils.lifecycle.launchAndRepeatWithViewLifecycle
1213
1314
1415fun BaseActivity.createLoadingDialog (text : String = "加载中", isCanCancelByReturn : Boolean ) {
You can’t perform that action at this time.
0 commit comments