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