Android Dialog切换白天黑夜/深色浅色模式报错:
android.view.WindowLeaked: Activity xxx.xxx.Activity has leaked window DecorView@xxx[XXXActivity] that was originally added here
解决方案,在Activity/Fragment onDestory()时候,呼叫:
dialog?.dismiss()
Android Dialog切换白天黑夜/深色浅色模式报错:
android.view.WindowLeaked: Activity xxx.xxx.Activity has leaked window DecorView@xxx[XXXActivity] that was originally added here
解决方案,在Activity/Fragment onDestory()时候,呼叫:
dialog?.dismiss()