forked from mirror/monocles_chat_clean
Try to fix this leak
(cherry picked from commit 401805b1bce61078ca9d4ca940e45ec317ffd3ef)
This commit is contained in:
parent
e0432df93a
commit
c0ed3a0481
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue