From 43f543900efac8edc10159851184da8cfca3d81a Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 24 Sep 2013 15:13:56 -0700 Subject: Restore the phone disambiguation dialog As discussed: 1) If a contact has more than one phone number and no default set, don't show the phone number type. Instead, just center the contact name. 2) Clicking on a contact with more than one phone number and no default will launch the disambiguation dialog. 3) If a contact has a default phone number set or only has one phone number, show the phone number type. 4) Add phone number type to the top 3 contacts, if one is present. Change-Id: I6a60fc6111e8f9494eca5e35d7cfbaf40aa99e57 --- res/layout/phone_favorite_regular_row_view.xml | 48 ++++++++++++-------------- res/layout/phone_favorite_tile_view.xml | 46 ++++++++++++++++-------- 2 files changed, 54 insertions(+), 40 deletions(-) (limited to 'res/layout') diff --git a/res/layout/phone_favorite_regular_row_view.xml b/res/layout/phone_favorite_regular_row_view.xml index b3c37d813..2e4dde217 100644 --- a/res/layout/phone_favorite_regular_row_view.xml +++ b/res/layout/phone_favorite_regular_row_view.xml @@ -37,37 +37,34 @@ android:scaleType="centerCrop" android:focusable="true" /> - - - - + android:layout_centerVertical="true" + android:orientation="vertical"> + + + diff --git a/res/layout/phone_favorite_tile_view.xml b/res/layout/phone_favorite_tile_view.xml index 1e79a109e..5f8733d15 100644 --- a/res/layout/phone_favorite_tile_view.xml +++ b/res/layout/phone_favorite_tile_view.xml @@ -39,25 +39,43 @@ android:layout_height="match_parent" android:background="@drawable/shadow_contact_photo"/> - - + android:paddingBottom="4dp" + android:layout_alignParentBottom="true" + android:orientation="vertical" > + + +