summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2016-05-04 17:43:56 -0700
committerWalter Jang <wjang@google.com>2016-05-05 17:54:35 -0700
commit820e397a859c9696686d37c6957cb14825c0e012 (patch)
tree8f8c2bef2b085c5b9d5ac163824de7df1447ee19
parent0bda251ac6cd279213fd159daf53d9713b0fc0e9 (diff)
downloadpackages_apps_ContactsCommon-820e397a859c9696686d37c6957cb14825c0e012.tar.gz
packages_apps_ContactsCommon-820e397a859c9696686d37c6957cb14825c0e012.tar.bz2
packages_apps_ContactsCommon-820e397a859c9696686d37c6957cb14825c0e012.zip
Rename message xml drawable so it's found on ldpi (2/2)
The ic_message_24dp.xml drawable is not found on ldpi devices. The difference between ic_message_24dp and other xml drawables which name a png src in a bitmap element (in order to also set the autoMirrored attribute) is that in other instances (e.g. ic_search_video_call.xml and ic_person_add_tinted_24dp.xml) the png that is referenced has a different name from the xml drawable (ic_videocam.png and ic_person_add_24dp for the previous two examples) Bug 27047302 Change-Id: I32843ca750aed57cc7c2586fa18cb02fe26192ef
-rw-r--r--res/drawable/ic_message_24dp_mirrored.xml (renamed from res/drawable/ic_message_24dp.xml)0
-rw-r--r--src/com/android/contacts/common/list/ShortcutIntentBuilder.java2
-rw-r--r--src/com/android/contacts/common/model/account/BaseAccountType.java4
3 files changed, 3 insertions, 3 deletions
diff --git a/res/drawable/ic_message_24dp.xml b/res/drawable/ic_message_24dp_mirrored.xml
index b1bd7439..b1bd7439 100644
--- a/res/drawable/ic_message_24dp.xml
+++ b/res/drawable/ic_message_24dp_mirrored.xml
diff --git a/src/com/android/contacts/common/list/ShortcutIntentBuilder.java b/src/com/android/contacts/common/list/ShortcutIntentBuilder.java
index ea01caa9..f30a1766 100644
--- a/src/com/android/contacts/common/list/ShortcutIntentBuilder.java
+++ b/src/com/android/contacts/common/list/ShortcutIntentBuilder.java
@@ -316,7 +316,7 @@ public class ShortcutIntentBuilder {
} else {
phoneUri = Uri.fromParts(ContactsUtils.SCHEME_SMSTO, phoneNumber, null);
bitmap = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
- R.drawable.ic_message_24dp);
+ R.drawable.ic_message_24dp_mirrored);
}
Intent shortcutIntent = new Intent(shortcutAction, phoneUri);
diff --git a/src/com/android/contacts/common/model/account/BaseAccountType.java b/src/com/android/contacts/common/model/account/BaseAccountType.java
index 214ba773..6481c063 100644
--- a/src/com/android/contacts/common/model/account/BaseAccountType.java
+++ b/src/com/android/contacts/common/model/account/BaseAccountType.java
@@ -256,7 +256,7 @@ public abstract class BaseAccountType extends AccountType {
protected DataKind addDataKindPhone(Context context) throws DefinitionException {
DataKind kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup,
Weight.PHONE, true));
- kind.iconAltRes = R.drawable.ic_message_24dp;
+ kind.iconAltRes = R.drawable.ic_message_24dp_mirrored;
kind.iconAltDescriptionRes = R.string.sms;
kind.actionHeader = new PhoneActionInflater();
kind.actionAltHeader = new PhoneActionAltInflater();
@@ -1045,7 +1045,7 @@ public abstract class BaseAccountType extends AccountType {
Phone.CONTENT_ITEM_TYPE, Phone.TYPE, R.string.phoneLabelsGroup, Weight.PHONE,
new PhoneActionInflater(), new SimpleInflater(Phone.NUMBER));
- kind.iconAltRes = R.drawable.ic_message_24dp;
+ kind.iconAltRes = R.drawable.ic_message_24dp_mirrored;
kind.iconAltDescriptionRes = R.string.sms;
kind.actionAltHeader = new PhoneActionAltInflater();