summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/layout/item_photo_editor.xml2
-rw-r--r--res/layout/item_photo_editor_readonly.xml2
-rw-r--r--res/values/strings.xml11
-rw-r--r--src/com/android/contacts/editor/KindSectionView.java3
4 files changed, 10 insertions, 8 deletions
diff --git a/res/layout/item_photo_editor.xml b/res/layout/item_photo_editor.xml
index ebf122d1a..bada4ccfa 100644
--- a/res/layout/item_photo_editor.xml
+++ b/res/layout/item_photo_editor.xml
@@ -24,7 +24,7 @@
android:id="@+id/kind_icon"
android:src="@drawable/ic_camera_alt_black_24dp"
android:layout_marginTop="8dp"
- android:contentDescription="@string/photo_section"
+ android:contentDescription="@string/header_photo_entry"
style="@style/EditKindIconStyle" />
<!-- Needs 10dp of top padding, in order get a total of 32dp of padding between this view
diff --git a/res/layout/item_photo_editor_readonly.xml b/res/layout/item_photo_editor_readonly.xml
index 0f9f9354f..1e998098f 100644
--- a/res/layout/item_photo_editor_readonly.xml
+++ b/res/layout/item_photo_editor_readonly.xml
@@ -25,7 +25,7 @@
android:id="@+id/kind_icon"
android:src="@drawable/ic_camera_alt_black_24dp"
android:layout_marginTop="8dp"
- android:contentDescription="@string/photo_section"
+ android:contentDescription="@string/header_photo_entry"
style="@style/EditKindIconStyle" />
<!-- Needs 10dp of top padding, in order get a total of 32dp of padding between this view
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d0aebf667..fe77b719b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -438,9 +438,6 @@
<!-- Button used for changing a photo in the Raw Contact Editor [CHAR LIMIT=15] -->
<string name="change_photo">Change</string>
- <!-- Content description for the camera icon beside the photo section in the Raw Contact Editor [CHAR LIMIT=NONE] -->
- <string name="photo_section">Photo section</string>
-
<!-- RadioButton that determines whether a raw contact's photo should be used for the entire contact [CHAR LIMIT=15] -->
<string name="primary_photo">Primary photo</string>
@@ -709,11 +706,13 @@
<!-- Header for the Relation entry [CHAR LIMIT=40] -->
<string name="header_relation_entry">Relation</string>
<!-- Content description for the name fields header entry [CHAR LIMIT=NONE] -->
- <string name="header_name_entry">Name section</string>
+ <string name="header_name_entry">Name</string>
<!-- Content description for the email fields header entry [CHAR LIMIT=NONE] -->
- <string name="header_email_entry">Email section</string>
+ <string name="header_email_entry">Email</string>
<!-- Content description for the phone fields header entry [CHAR LIMIT=NONE] -->
- <string name="header_phone_entry">Phone section</string>
+ <string name="header_phone_entry">Phone</string>
+ <!-- Content description for the camera icon beside the photo section in the Raw Contact Editor [CHAR LIMIT=NONE] -->
+ <string name="header_photo_entry">Photo</string>
<!-- Content description for directions secondary button [CHAR LIMIT=NONE] -->
<string name="content_description_directions">directions to location</string>
diff --git a/src/com/android/contacts/editor/KindSectionView.java b/src/com/android/contacts/editor/KindSectionView.java
index 24d4ee8ff..3b10fe488 100644
--- a/src/com/android/contacts/editor/KindSectionView.java
+++ b/src/com/android/contacts/editor/KindSectionView.java
@@ -141,6 +141,9 @@ public class KindSectionView extends LinearLayout implements EditorListener {
mIcon.setContentDescription(titleString);
mIcon.setImageDrawable(getMimeTypeDrawable(kind.mimeType));
+ if (mIcon.getDrawable() == null) {
+ mIcon.setContentDescription(null);
+ }
rebuildFromState();
updateEmptyEditors(/* shouldAnimate = */ false);