Repository navigation
Commit bbb2b4c
committed
ADFA-3418: Register the flashbar config callback on attach, not in show()
Unregistering on detach alone did not clear the leak: a LeakCanary dump after backgrounding still showed the callback holding a destroyed EditorActivityKt. Register in onAttachedToWindow so the callback exists only while the bar is attached, paired with the detach unregister.1 parent bf8aded commit bbb2b4c
1 file changed
Lines changed: 9 additions & 3 deletions
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| |||
184 | 190 | | |
185 | 191 | | |
186 | 192 | | |
| 193 | + | |
187 | 194 | | |
188 | | - | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
| |||
0 commit comments