summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/quickcontact/ExpandingEntryCardView.java6
-rw-r--r--src/com/android/contacts/quickcontact/QuickContactActivity.java4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
index 69b0d4976..633185bc6 100644
--- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
+++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java
@@ -508,9 +508,13 @@ public class ExpandingEntryCardView extends LinearLayout {
final Rect alternateIconRect = new Rect();
alternateIcon.getHitRect(alternateIconRect);
- alternateIconRect.right = entryRect.right;
alternateIconRect.bottom = entryRect.bottom;
alternateIconRect.top = entryRect.top;
+ if (getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {
+ alternateIconRect.left = entryRect.left;
+ } else {
+ alternateIconRect.right = entryRect.right;
+ }
final TouchDelegate touchDelegate =
new TouchDelegate(alternateIconRect, alternateIcon);
view.setTouchDelegate(touchDelegate);
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 1f01c2437..e453a4be3 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -845,7 +845,7 @@ public class QuickContactActivity extends ContactsActivity {
phoneIcon, getString(R.string.quickcontact_add_phone_number),
/* subHeader = */ null, /* text = */ null, getEditContactIntent(),
/* alternateIcon = */ null, /* alternateIntent = */ null,
- /* alternateContentDescription = */ null, /* shouldApplyColor = */ false,
+ /* alternateContentDescription = */ null, /* shouldApplyColor = */ true,
/* isEditable = */ false);
final Drawable emailIcon = getResources().getDrawable(
@@ -854,7 +854,7 @@ public class QuickContactActivity extends ContactsActivity {
emailIcon, getString(R.string.quickcontact_add_email), /* subHeader = */ null,
/* text = */ null, getEditContactIntent(), /* alternateIcon = */ null,
/* alternateIntent = */ null, /* alternateContentDescription = */ null,
- /* shouldApplyColor = */ false, /* isEditable = */ false);
+ /* shouldApplyColor = */ true, /* isEditable = */ false);
final List<List<Entry>> promptEntries = new ArrayList<>();
promptEntries.add(new ArrayList<Entry>(1));