打印的泄漏日志:
android.view.WindowLeaked: Activity com.bank.account.BuyActivity has leaked window android.widget.ImageView{b3912b1 V.ED..... ......ID 0,0-296,146} that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java:1038)
at android.view.ViewRootImpl.(ViewRootImpl.java:1022)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:401)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:154)
at com.blankj.utilcode.util.ToastUtils$WindowManagerToast.show(ToastUtils.java:630)
at com.blankj.utilcode.util.ToastUtils$ActivityToast.showWithActivityWindow(ToastUtils.java:739)
at com.blankj.utilcode.util.ToastUtils$ActivityToast.show(ToastUtils.java:680)
at com.blankj.utilcode.util.ToastUtils$2.run(ToastUtils.java:494)
at com.blankj.utilcode.util.ThreadUtils.runOnUiThread(ThreadUtils.java:70)
at com.blankj.utilcode.util.UtilsBridge.runOnUiThread(UtilsBridge.java:554)
at com.blankj.utilcode.util.ToastUtils.show(ToastUtils.java:483)
at com.blankj.utilcode.util.ToastUtils.show(ToastUtils.java:472)
at com.blankj.utilcode.util.ToastUtils.showShort(ToastUtils.java:412)
打印的泄漏日志: android.view.WindowLeaked: Activity com.bank.account.BuyActivity has leaked window android.widget.ImageView{b3912b1 V.ED..... ......ID 0,0-296,146} that was originally added here at android.view.ViewRootImpl.(ViewRootImpl.java:1038)
at android.view.ViewRootImpl.(ViewRootImpl.java:1022)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:401)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:154)
at com.blankj.utilcode.util.ToastUtils$WindowManagerToast.show(ToastUtils.java:630)
at com.blankj.utilcode.util.ToastUtils$ActivityToast.showWithActivityWindow(ToastUtils.java:739)
at com.blankj.utilcode.util.ToastUtils$ActivityToast.show(ToastUtils.java:680)
at com.blankj.utilcode.util.ToastUtils$2.run(ToastUtils.java:494)
at com.blankj.utilcode.util.ThreadUtils.runOnUiThread(ThreadUtils.java:70)
at com.blankj.utilcode.util.UtilsBridge.runOnUiThread(UtilsBridge.java:554)
at com.blankj.utilcode.util.ToastUtils.show(ToastUtils.java:483)
at com.blankj.utilcode.util.ToastUtils.show(ToastUtils.java:472)
at com.blankj.utilcode.util.ToastUtils.showShort(ToastUtils.java:412)