Remove detached views from ChatBackgroundDrawable
dallo28 committed
- Author
- dallo28 · dallo28@users.noreply.github.comOct 23, 2026 at 16:17
- Committer
- dallo28 · dallo28@users.noreply.github.comOct 23, 2026 at 16:27
- Parents
- 0aae959806c5
Remove detached views from ChatBackgroundDrawable onDetachedFromWindow() only removed the view when it was not in the list, so a view was never removed. Every view that showed a chat background stayed referenced by the drawable, together with its whole chat view tree, and the image receiver was never detached. This shows up when a chat with a custom background is rebuilt, e.g. when a foldable is folded or unfolded: each rebuild kept the previous ChatActivity view tree alive.
1 file changed+1−3