Fixed hide_[phone_numbers/sip_addresses]_in_editor custom
This commit is contained in:
parent
100134426c
commit
2d8e567bb5
2 changed files with 14 additions and 1 deletions
|
@ -138,6 +138,7 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/sip_addresses"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
|
@ -176,8 +177,8 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/phone_numbers"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class ContactEditorFragment extends Fragment {
|
||||||
private View view;
|
private View view;
|
||||||
private ImageView cancel, deleteContact, ok;
|
private ImageView cancel, deleteContact, ok;
|
||||||
private ImageView addNumber, addSipAddress, contactPicture;
|
private ImageView addNumber, addSipAddress, contactPicture;
|
||||||
|
private LinearLayout phoneNumbersSection, sipAddressesSection;
|
||||||
private EditText firstName, lastName;
|
private EditText firstName, lastName;
|
||||||
private LayoutInflater inflater;
|
private LayoutInflater inflater;
|
||||||
private static final int ADD_PHOTO = 1337;
|
private static final int ADD_PHOTO = 1337;
|
||||||
|
@ -114,6 +115,17 @@ public class ContactEditorFragment extends Fragment {
|
||||||
|
|
||||||
view = inflater.inflate(R.layout.contact_edit, container, false);
|
view = inflater.inflate(R.layout.contact_edit, container, false);
|
||||||
|
|
||||||
|
phoneNumbersSection = (LinearLayout) view.findViewById(R.id.phone_numbers);
|
||||||
|
if (getResources().getBoolean(R.bool.hide_phone_numbers_in_editor)) {
|
||||||
|
phoneNumbersSection.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
sipAddressesSection = (LinearLayout) view.findViewById(R.id.sip_addresses);
|
||||||
|
if (getResources().getBoolean(R.bool.hide_sip_addresses_in_editor)) {
|
||||||
|
sipAddressesSection.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
deleteContact = (ImageView) view.findViewById(R.id.delete_contact);
|
deleteContact = (ImageView) view.findViewById(R.id.delete_contact);
|
||||||
|
|
||||||
cancel = (ImageView) view.findViewById(R.id.cancel);
|
cancel = (ImageView) view.findViewById(R.id.cancel);
|
||||||
|
|
Loading…
Reference in a new issue