mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 13:48:26 +00:00
fix crash in RecipientPreferenceActivity
fixes #4674 closes #4679 // FREEBIE
This commit is contained in:
parent
e914496216
commit
4dce79334d
@ -220,9 +220,9 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi
|
||||
}
|
||||
|
||||
if (!recipients.isSingleRecipient() || recipients.isGroupRecipient()) {
|
||||
this.getPreferenceScreen().removePreference(colorPreference);
|
||||
this.getPreferenceScreen().removePreference(blockPreference);
|
||||
this.getPreferenceScreen().removePreference(identityPreference);
|
||||
if (colorPreference != null) getPreferenceScreen().removePreference(colorPreference);
|
||||
if (blockPreference != null) getPreferenceScreen().removePreference(blockPreference);
|
||||
if (identityPreference != null) getPreferenceScreen().removePreference(identityPreference);
|
||||
} else {
|
||||
colorPreference.setChoices(MaterialColors.CONVERSATION_PALETTE.asConversationColorArray(getActivity()));
|
||||
colorPreference.setValue(recipients.getColor().toActionBarColor(getActivity()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user