Commit f9c283e
committed
review: guard refreshMaterialAboutList with isAdded (avoid null adapter)
Per Greptile: if the fragment is detached while the battery-settings screen is open,
the activity-result callback's refreshMaterialAboutList() could dereference a null
adapter. Guard with isAdded, matching the checkUpdate() pattern.1 parent 7a75da5 commit f9c283e
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments