diff options
author | zachh <zachh@google.com> | 2018-01-11 13:43:45 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-01-11 14:22:45 -0800 |
commit | 5dd30438fd3e4384b57cef3c7606ec20fad9b50d (patch) | |
tree | 3d83b4073a473666c6915186598eddcf85b5f3e0 /java/com/android/dialer/contactactions/res/layout | |
parent | c3490b2075833dc2a4205eae35f6ee404df49cc9 (diff) |
Minor polish and bugfixes for new call log.
-Reuse the adapter in NewCallLogFragment to maintain position in call log when returning from call details
-Convert empty values to null when invoking ContactPhotoManager to make photos appear correctly in new call log bottom sheets
-Added CallLogContactTypes to be shared between proper call log and bottom sheets
-Fixed vertical alignment in bottom sheet when there was no secondary text
-Added some verbose logging
Test: unit and manual
PiperOrigin-RevId: 181655715
Change-Id: I9c1a42ad8d529ee2327e15fcc1d32b7b83982014
Diffstat (limited to 'java/com/android/dialer/contactactions/res/layout')
-rw-r--r-- | java/com/android/dialer/contactactions/res/layout/contact_layout.xml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/java/com/android/dialer/contactactions/res/layout/contact_layout.xml b/java/com/android/dialer/contactactions/res/layout/contact_layout.xml index 8ea05d4d6..4deef3e07 100644 --- a/java/com/android/dialer/contactactions/res/layout/contact_layout.xml +++ b/java/com/android/dialer/contactactions/res/layout/contact_layout.xml @@ -15,12 +15,13 @@ ~ limitations under the License --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="8dp" android:layout_marginBottom="12dp" - android:layout_marginEnd="8dp"> + android:layout_marginEnd="8dp" + android:gravity="center_vertical" + android:orientation="horizontal"> <QuickContactBadge android:id="@+id/quick_contact_photo" @@ -32,22 +33,22 @@ android:focusable="true"/> <LinearLayout - android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:gravity="center_vertical"> + android:gravity="center_vertical" + android:orientation="vertical"> <TextView android:id="@+id/primary_text" + style="@style/PrimaryText" android:layout_width="wrap_content" - android:layout_height="wrap_content" - style="@style/PrimaryText"/> + android:layout_height="wrap_content"/> <TextView android:id="@+id/secondary_text" + style="@style/SecondaryText" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="2dp" - style="@style/SecondaryText"/> + android:layout_marginTop="2dp"/> </LinearLayout> </LinearLayout>
\ No newline at end of file |