Commit a73de97
authored
Fix WindowLeaked exception in BrokenSiteActivity (duckduckgo#3651)
Task/Issue URL:
https://app.asana.com/0/1202552961248957/1205303030306903/f
### Description
Fix an Activity reference leak when an AlertDialog isn't properly
dismissed.
### Steps to test this PR
- Navigate to a website.
- From the overflow menu choose "Report Broken Site".
- Tap on category field (a dialog should show).
- Rotate the screen while the dialog is shown.
- Check that there is no WindowLeaked exception in logcat.
### No UI changes1 parent f8ac188 commit a73de97
File tree
1 file changed
+18
-0
lines changed- app/src/main/java/com/duckduckgo/app/brokensite
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
| 115 | + | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
| |||
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
0 commit comments