Blankj / Blankj/AndroidUtilCode

卡点使用ToastUtil.show会导致应用崩溃

Open
#1,752 0 comments 0 reactions 1 assignee Claimed by @Blankj View on GitHub
bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug

卡点使用ToastUtil.show会导致应用崩溃

当应用某些时候卡点(并非故意,只是某些场景某些时候总是会卡上点),比如在activity死亡过程中,调用ToastUtil.show就是出现window has leaked (好像报一个ImageView内存泄漏) 的异常并且应用崩溃

A clear and concise description of what the bug is.

- The version of AndroidUtilCode:
- The device:
- The version of device:

## The code of bug

```
put your code here
```

## The stack of crash

```
put the stack of crash here
```

## Screenshots

If applicable, add screenshots to help explain your problem.

## Please delete the current line and the following.

Thank you for supporting [AndroidUtilCode](https://github.com/Blankj/AndroidUtilCode).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.