mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-25 10:37:20 +00:00
Guard against fragment disappearing before callback.
// FREEBIE
This commit is contained in:
parent
1ad7912e75
commit
3439657bba
@ -1037,6 +1037,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
ConversationFragment fragment = (ConversationFragment) getSupportFragmentManager()
|
ConversationFragment fragment = (ConversationFragment) getSupportFragmentManager()
|
||||||
.findFragmentById(R.id.fragment_content);
|
.findFragmentById(R.id.fragment_content);
|
||||||
|
|
||||||
|
if (fragment == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (refreshFragment) {
|
if (refreshFragment) {
|
||||||
fragment.reload(recipients, threadId);
|
fragment.reload(recipients, threadId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user