Remove Recipients listener when pref fragment is destroyed.
Fixes #3434 // FREEBIE
This commit is contained in:
parent
fd2fe9ebd7
commit
a7f63ed9a3
1 changed files with 5 additions and 0 deletions
|
@ -164,6 +164,11 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi
|
|||
setSummaries(recipients);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
this.recipients.removeListener(this);
|
||||
}
|
||||
|
||||
private void setSummaries(Recipients recipients) {
|
||||
CheckBoxPreference mutePreference = (CheckBoxPreference) this.findPreference(PREFERENCE_MUTED);
|
||||
RingtonePreference ringtonePreference = (RingtonePreference) this.findPreference(PREFERENCE_TONE);
|
||||
|
|
Loading…
Add table
Reference in a new issue