mirror of
				https://github.com/oxen-io/session-android.git
				synced 2025-10-31 17:59:40 +00:00 
			
		
		
		
	Hide call settings for groups.
This commit is contained in:
		| @@ -363,6 +363,7 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi | |||||||
|       ColorPickerPreference colorPreference           = (ColorPickerPreference) this.findPreference(PREFERENCE_COLOR); |       ColorPickerPreference colorPreference           = (ColorPickerPreference) this.findPreference(PREFERENCE_COLOR); | ||||||
|       Preference            blockPreference           = this.findPreference(PREFERENCE_BLOCK); |       Preference            blockPreference           = this.findPreference(PREFERENCE_BLOCK); | ||||||
|       Preference            identityPreference        = this.findPreference(PREFERENCE_IDENTITY); |       Preference            identityPreference        = this.findPreference(PREFERENCE_IDENTITY); | ||||||
|  |       PreferenceCategory    callCategory              = (PreferenceCategory)this.findPreference("call_settings"); | ||||||
|       PreferenceCategory    aboutCategory             = (PreferenceCategory)this.findPreference("about"); |       PreferenceCategory    aboutCategory             = (PreferenceCategory)this.findPreference("about"); | ||||||
|       PreferenceCategory    aboutDivider              = (PreferenceCategory)this.findPreference("about_divider"); |       PreferenceCategory    aboutDivider              = (PreferenceCategory)this.findPreference("about_divider"); | ||||||
|       ContactPreference     aboutPreference           = (ContactPreference)this.findPreference(PREFERENCE_ABOUT); |       ContactPreference     aboutPreference           = (ContactPreference)this.findPreference(PREFERENCE_ABOUT); | ||||||
| @@ -386,8 +387,10 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi | |||||||
|       if (recipient.isGroupRecipient()) { |       if (recipient.isGroupRecipient()) { | ||||||
|         if (colorPreference    != null) colorPreference.setVisible(false); |         if (colorPreference    != null) colorPreference.setVisible(false); | ||||||
|         if (identityPreference != null) identityPreference.setVisible(false); |         if (identityPreference != null) identityPreference.setVisible(false); | ||||||
|         if (aboutCategory      != null) getPreferenceScreen().removePreference(aboutCategory); |         if (callCategory       != null) callCategory.setVisible(false); | ||||||
|         if (aboutDivider       != null) getPreferenceScreen().removePreference(aboutDivider); |         if (aboutCategory      != null) aboutCategory.setVisible(false); | ||||||
|  |         if (aboutDivider       != null) aboutDivider.setVisible(false); | ||||||
|  |         if (divider            != null) divider.setVisible(false); | ||||||
|       } else { |       } else { | ||||||
|         colorPreference.setColors(MaterialColors.CONVERSATION_PALETTE.asConversationColorArray(getActivity())); |         colorPreference.setColors(MaterialColors.CONVERSATION_PALETTE.asConversationColorArray(getActivity())); | ||||||
|         colorPreference.setColor(recipient.getColor().toActionBarColor(getActivity())); |         colorPreference.setColor(recipient.getColor().toActionBarColor(getActivity())); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Greyson Parrelli
					Greyson Parrelli