Loading res/layout/item_photo_editor.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading res/layout/item_photo_editor_readonly.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading res/values/strings.xml +5 −6 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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> Loading src/com/android/contacts/editor/KindSectionView.java +3 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
res/layout/item_photo_editor.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
res/layout/item_photo_editor_readonly.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
res/values/strings.xml +5 −6 Original line number Diff line number Diff line Loading @@ -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> Loading Loading @@ -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> Loading
src/com/android/contacts/editor/KindSectionView.java +3 −0 Original line number Diff line number Diff line Loading @@ -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); Loading