зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1081281: Don't double-box in ContactService. r=rnewman
This commit is contained in:
Родитель
656551f5f7
Коммит
70839d9416
|
@ -1898,7 +1898,7 @@ public class ContactService implements GeckoEventListener {
|
||||||
private int getAddressType(String addressType) {
|
private int getAddressType(String addressType) {
|
||||||
initAddressTypesMap();
|
initAddressTypesMap();
|
||||||
Integer type = mAddressTypesMap.get(addressType.toLowerCase());
|
Integer type = mAddressTypesMap.get(addressType.toLowerCase());
|
||||||
return (type != null ? Integer.valueOf(type) : StructuredPostal.TYPE_CUSTOM);
|
return type != null ? type : StructuredPostal.TYPE_CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initAddressTypesMap() {
|
private void initAddressTypesMap() {
|
||||||
|
@ -1914,7 +1914,7 @@ public class ContactService implements GeckoEventListener {
|
||||||
private int getPhoneType(String phoneType) {
|
private int getPhoneType(String phoneType) {
|
||||||
initPhoneTypesMap();
|
initPhoneTypesMap();
|
||||||
Integer type = mPhoneTypesMap.get(phoneType.toLowerCase());
|
Integer type = mPhoneTypesMap.get(phoneType.toLowerCase());
|
||||||
return (type != null ? Integer.valueOf(type) : Phone.TYPE_CUSTOM);
|
return type != null ? type : Phone.TYPE_CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initPhoneTypesMap() {
|
private void initPhoneTypesMap() {
|
||||||
|
@ -1949,7 +1949,7 @@ public class ContactService implements GeckoEventListener {
|
||||||
private int getEmailType(String emailType) {
|
private int getEmailType(String emailType) {
|
||||||
initEmailTypesMap();
|
initEmailTypesMap();
|
||||||
Integer type = mEmailTypesMap.get(emailType.toLowerCase());
|
Integer type = mEmailTypesMap.get(emailType.toLowerCase());
|
||||||
return (type != null ? Integer.valueOf(type) : Email.TYPE_CUSTOM);
|
return type != null ? type : Email.TYPE_CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initEmailTypesMap() {
|
private void initEmailTypesMap() {
|
||||||
|
@ -1966,7 +1966,7 @@ public class ContactService implements GeckoEventListener {
|
||||||
private int getWebsiteType(String webisteType) {
|
private int getWebsiteType(String webisteType) {
|
||||||
initWebsiteTypesMap();
|
initWebsiteTypesMap();
|
||||||
Integer type = mWebsiteTypesMap.get(webisteType.toLowerCase());
|
Integer type = mWebsiteTypesMap.get(webisteType.toLowerCase());
|
||||||
return (type != null ? Integer.valueOf(type) : Website.TYPE_CUSTOM);
|
return type != null ? type : Website.TYPE_CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initWebsiteTypesMap() {
|
private void initWebsiteTypesMap() {
|
||||||
|
@ -1986,7 +1986,7 @@ public class ContactService implements GeckoEventListener {
|
||||||
private int getImType(String imType) {
|
private int getImType(String imType) {
|
||||||
initImTypesMap();
|
initImTypesMap();
|
||||||
Integer type = mImTypesMap.get(imType.toLowerCase());
|
Integer type = mImTypesMap.get(imType.toLowerCase());
|
||||||
return (type != null ? Integer.valueOf(type) : Im.TYPE_CUSTOM);
|
return type != null ? type : Im.TYPE_CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initImTypesMap() {
|
private void initImTypesMap() {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче