Try to fix this leak

(cherry picked from commit 401805b1bce61078ca9d4ca940e45ec317ffd3ef)
This commit is contained in:
Stephen Paul Weber 2024-10-08 22:38:03 -05:00 committed by Arne
parent e0432df93a
commit c0ed3a0481

View file

@ -1807,6 +1807,12 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
}
if (mPager == null) {
if (page1 != null && page1.getParent() != null) {
((ViewGroup) page1.getParent()).removeView(page1);
}
if (page2 != null && page2.getParent() != null) {
((ViewGroup) page2.getParent()).removeView(page2);
}
page1 = null;
page2 = null;
return;