From 8cd9423bd04584acbcbf178bf6a1c1953debb8da Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 23 Jul 2014 14:05:31 -0700 Subject: Add voicemail transcriptions to Dialer * Display voicemail transcriptions in the call log and call details activity in the Dialer * Fix a bug in CallDetailActivity that would result in multiple instances of VoicemailPlaybackFragment being added on rotation. Now, reuse the same fragment if it is already present in the FragmentManager, to avoid creating new ones * Simplify some test and ctor logic in PhoneCallDetails to reduce the pain of adding new fields into PhoneCallDetails * Simplified playback_layout.xml to remove unnecessary parent LinearLayouts Bug: 16320164 Change-Id: Ie68acc9058aace49d8e64f44a0128de0b6a3f842 --- res/layout/call_detail.xml | 18 ++++++++++---- res/layout/call_detail_history_item.xml | 18 +++++--------- res/layout/playback_layout.xml | 44 ++++++++++++--------------------- res/values/dimens.xml | 2 ++ 4 files changed, 37 insertions(+), 45 deletions(-) (limited to 'res') diff --git a/res/layout/call_detail.xml b/res/layout/call_detail.xml index 9ca30a898..f08531b0c 100644 --- a/res/layout/call_detail.xml +++ b/res/layout/call_detail.xml @@ -15,17 +15,16 @@ --> + android:layout_height="match_parent" > + android:background="@color/background_dialer_list_items" > + android:background="@color/background_dialer_white" > + diff --git a/res/layout/call_detail_history_item.xml b/res/layout/call_detail_history_item.xml index cc06d2151..0e5dcf2f4 100644 --- a/res/layout/call_detail_history_item.xml +++ b/res/layout/call_detail_history_item.xml @@ -23,41 +23,35 @@ android:paddingStart="@dimen/call_detail_horizontal_margin" android:paddingEnd="@dimen/call_log_outer_margin" android:orientation="vertical" - android:background="@color/background_dialer_list_items" -> + android:background="@color/background_dialer_list_items" > + android:orientation="horizontal" > + android:layout_gravity="center_vertical" /> + android:textSize="@dimen/call_log_primary_text_size" /> + android:textSize="@dimen/call_log_secondary_text_size" /> + android:textSize="@dimen/call_log_secondary_text_size" /> diff --git a/res/layout/playback_layout.xml b/res/layout/playback_layout.xml index 2f4d33c7a..500ed96b5 100644 --- a/res/layout/playback_layout.xml +++ b/res/layout/playback_layout.xml @@ -14,10 +14,11 @@ limitations under the License. --> - @@ -26,44 +27,31 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" - android:layout_alignParentTop="true" > - - - - + - - + android:background="?android:attr/selectableItemBackground" + android:src="@drawable/ic_speakerphone_on" + android:contentDescription="@string/description_playback_speakerphone" + /> 12dp -- cgit v1.2.3