Commit 0131c44
committed
Prevent crash on showing AlertDialogWpp
Before showing an `AlertDialogWpp`, check if the underlying `Activity` context is finishing or destroyed to prevent a `WindowManager$BadTokenException`.
Signed-off-by: Dev4Mod <[email protected]>1 parent 806333e commit 0131c44
File tree
1 file changed
+7
-0
lines changed- app/src/main/java/com/wmods/wppenhacer/xposed/core/components
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
0 commit comments