mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Remove Recipients listener when pref fragment is destroyed.
Fixes #3434 // FREEBIE
This commit is contained in:
parent
fd2fe9ebd7
commit
a7f63ed9a3
@ -164,6 +164,11 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi
|
|||||||
setSummaries(recipients);
|
setSummaries(recipients);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
this.recipients.removeListener(this);
|
||||||
|
}
|
||||||
|
|
||||||
private void setSummaries(Recipients recipients) {
|
private void setSummaries(Recipients recipients) {
|
||||||
CheckBoxPreference mutePreference = (CheckBoxPreference) this.findPreference(PREFERENCE_MUTED);
|
CheckBoxPreference mutePreference = (CheckBoxPreference) this.findPreference(PREFERENCE_MUTED);
|
||||||
RingtonePreference ringtonePreference = (RingtonePreference) this.findPreference(PREFERENCE_TONE);
|
RingtonePreference ringtonePreference = (RingtonePreference) this.findPreference(PREFERENCE_TONE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user