Blankj / Blankj/AndroidUtilCode

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

Offen
#1,752 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Blankj Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
33.6k
Forks
10.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.