Fix issue 1164: Incorrect organization type label in contacts

http://code.google.com/p/android/issues/detail?id=1164
The organization definition in string-array resource is different from
android.provider.Contacts.OrganizationColumns
This commit is contained in:
Evan JIANG
2008-11-02 09:47:52 +08:00
parent a895b79ccf
commit ae499953ce
2 changed files with 2 additions and 3 deletions

View File

@@ -1170,7 +1170,7 @@ public class Contacts {
*/
public interface OrganizationColumns {
/**
* The type of the the phone number.
* The type of the organizations.
* <P>Type: INTEGER (one of the constants below)</P>
*/
public static final String TYPE = "type";
@@ -1229,7 +1229,7 @@ public class Contacts {
try {
display = labels[type - 1];
} catch (ArrayIndexOutOfBoundsException e) {
display = labels[People.Phones.TYPE_HOME - 1];
display = labels[Organizations.TYPE_WORK - 1];
}
} else {
if (!TextUtils.isEmpty(label)) {

View File

@@ -731,7 +731,6 @@
<!-- Organization types from android.provider.Contacts -->
<string-array name="organizationTypes">
<!-- The order of these is important, don't reorder without changing Contacts.java -->
<item>Home</item>
<item>Work</item>
<item>Other</item>
<item>Custom\u2026</item>