Added a setting that prevents a user to edit a pure linphonefriend contact
This commit is contained in:
parent
383c54f817
commit
b9c6abdeb5
2 changed files with 13 additions and 6 deletions
|
@ -90,6 +90,11 @@ public class ContactDetailsFragment extends Fragment implements ContactsUpdatedL
|
|||
}
|
||||
});
|
||||
|
||||
if (mContact != null
|
||||
&& getResources().getBoolean(R.bool.forbid_pure_linphone_contacts_edition)) {
|
||||
editContact.setVisibility(mContact.isAndroidContact() ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
ImageView deleteContact = mView.findViewById(R.id.deleteContact);
|
||||
deleteContact.setOnClickListener(
|
||||
new OnClickListener() {
|
||||
|
|
|
@ -117,6 +117,7 @@
|
|||
<bool name="generate_text_avatar">true</bool>
|
||||
<bool name="only_show_address_username_if_matches_default_domain">true</bool>
|
||||
<bool name="fetch_contacts_from_default_directory">true</bool> <!-- Recommended -->
|
||||
<bool name="forbid_pure_linphone_contacts_edition">true</bool>
|
||||
|
||||
<!-- Side Menu -->
|
||||
<bool name="hide_assistant_from_side_menu">false</bool>
|
||||
|
@ -125,16 +126,17 @@
|
|||
<bool name="disable_accounts_settings_from_side_menu">false</bool>
|
||||
<bool name="show_log_out_in_side_menu">false</bool>
|
||||
|
||||
<!-- Others Parameters-->
|
||||
<!-- Notifications -->
|
||||
<bool name="enable_call_notification">true</bool>
|
||||
<integer name="notification_ms_on">1000</integer>
|
||||
<integer name="notification_ms_off">7000</integer>
|
||||
<!-- Only for Android >= 23 -->
|
||||
<bool name="keep_missed_call_notification_upon_restart">false</bool>
|
||||
|
||||
<!-- Others Parameters-->
|
||||
<bool name="kill_service_with_task_manager">true</bool>
|
||||
<bool name="check_for_update_when_app_starts">true</bool>
|
||||
<integer name="time_between_update_check">86400000</integer>
|
||||
<integer name="notification_ms_on">1000</integer>
|
||||
<integer name="notification_ms_off">7000</integer>
|
||||
|
||||
<!-- Only for Android >= 23 -->
|
||||
<bool name="keep_missed_call_notification_upon_restart">false</bool>
|
||||
|
||||
<!-- Inapp -->
|
||||
<bool name="enable_in_app_purchase">false</bool>
|
||||
|
|
Loading…
Reference in a new issue