mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Fix crash opening message from notification
This commit is contained in:
parent
085f1e9b67
commit
01aca66f00
1 changed files with 4 additions and 2 deletions
|
@ -1820,8 +1820,10 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||
page1.clear();
|
||||
page2.clear();
|
||||
}
|
||||
if (page1.get() == null) page1 = new WeakReference(oldConversation.pagerAdapter.page1);
|
||||
if (page2.get() == null) page2 = new WeakReference(oldConversation.pagerAdapter.page2);
|
||||
if (oldConversation != null) {
|
||||
if (page1.get() == null) page1 = new WeakReference(oldConversation.pagerAdapter.page1);
|
||||
if (page2.get() == null) page2 = new WeakReference(oldConversation.pagerAdapter.page2);
|
||||
}
|
||||
if (page1.get() == null || page2.get() == null) {
|
||||
throw new IllegalStateException("page1 or page2 were not present as child or in model?");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue