mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 21:53:43 +00:00
Fix potential crash with recipient preferences.
This commit is contained in:
parent
96c39ec100
commit
ab58eab9f4
@ -443,7 +443,11 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onModified(final Recipient recipient) {
|
public void onModified(final Recipient recipient) {
|
||||||
Util.runOnMain(() -> setSummaries(recipient));
|
Util.runOnMain(() -> {
|
||||||
|
if (getContext() != null && getActivity() != null && !getActivity().isFinishing()) {
|
||||||
|
setSummaries(recipient);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private class RingtoneChangeListener implements Preference.OnPreferenceChangeListener {
|
private class RingtoneChangeListener implements Preference.OnPreferenceChangeListener {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user