Commit 7bf97f11 authored by wanglei's avatar wanglei

loading弹出不可返回取消

parent a3be72ce
......@@ -113,7 +113,7 @@ class MainActivity : AppCompatActivity() {
override fun onRestart() {
super.onRestart()
(application as MyApplication).kokoOpenAdManager.showAdIfAvailable(this)
// (application as MyApplication).kokoOpenAdManager.showAdIfAvailable(this)
}
override fun onDestroy() {
......
......@@ -16,6 +16,7 @@ object LoadingDialog {
val dialog = AlertDialog.Builder(this).setView(binding.root).create()
dialog.show()
dialog.setCanceledOnTouchOutside(false)
dialog.setCancelable(false)
//修改dialog的尺寸
val lp = dialog.window?.attributes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment