Fix adding number when a category is hidden
This commit is contained in:
parent
e84c46e78b
commit
4af85a96e4
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ public class EditContactFragment extends Fragment {
|
|||
}
|
||||
|
||||
private View displayNumberOrAddress(final TableLayout controls, String numberOrAddress, boolean forceAddNumber) {
|
||||
final boolean isSip = numberOrAddress.startsWith("sip:");
|
||||
boolean isSip = numberOrAddress.startsWith("sip:");
|
||||
if (isSip) {
|
||||
if (firstSipAddressIndex == -1) {
|
||||
firstSipAddressIndex = controls.getChildCount();
|
||||
|
@ -243,7 +243,7 @@ public class EditContactFragment extends Fragment {
|
|||
numberOrAddress = numberOrAddress.replace("sip:", "");
|
||||
}
|
||||
if ((getResources().getBoolean(R.bool.hide_phone_numbers_in_editor) && !isSip) || (getResources().getBoolean(R.bool.hide_sip_addresses_in_editor) && isSip)) {
|
||||
return null;
|
||||
isSip = !isSip; // If number can't be displayed because we hide a sort of number, change that category
|
||||
}
|
||||
|
||||
NewOrUpdatedNumberOrAddress tempNounoa;
|
||||
|
|
Loading…
Reference in a new issue