diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-18 11:27:54 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-18 11:30:26 -0700 |
commit | c1167e9a05c0578d483d7cd87302a8746e714df0 (patch) | |
tree | fe4c6fa83a55607c118bf50d6296cbfbacc83cb4 | |
parent | 6cb5bfb225d53a00d61aecae9a8e3b0a898e8b0e (diff) |
Remove voicemail transcript from details.
It will continue to be shown in the call log, but will be removed
from details since the widget will be moved.
Bug: 21170557
Change-Id: I1ec3b090adc0736f7b134d0f67282ba7b4f9483b
-rw-r--r-- | res/layout/call_details_voicemail_header.xml | 9 | ||||
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 10 |
2 files changed, 1 insertions, 18 deletions
diff --git a/res/layout/call_details_voicemail_header.xml b/res/layout/call_details_voicemail_header.xml index 7f8b9b81e..e3640faf4 100644 --- a/res/layout/call_details_voicemail_header.xml +++ b/res/layout/call_details_voicemail_header.xml @@ -18,15 +18,6 @@ android:layout_height="wrap_content" android:orientation="vertical" > - <TextView - android:id="@+id/voicemail_transcription" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="@dimen/call_detail_horizontal_margin" - android:paddingEnd="@dimen/call_detail_horizontal_margin" - android:paddingTop="@dimen/transcription_top_margin" - android:paddingBottom="@dimen/transcription_bottom_margin" /> - <LinearLayout android:id="@+id/voicemail_container" android:layout_width="match_parent" diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 401c2ae80..2401c4767 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -121,8 +121,7 @@ public class CallDetailActivity extends Activity { /* package */ Resources mResources; /** Helper to load contact photos. */ private ContactPhotoManager mContactPhotoManager; - // Views related to voicemail status message. - private TextView mVoicemailTranscription; + private LinearLayout mVoicemailHeader; private Uri mVoicemailUri; @@ -216,8 +215,6 @@ public class CallDetailActivity extends Activity { mVoicemailHeader = (LinearLayout) inflater.inflate(R.layout.call_details_voicemail_header, null); View voicemailContainer = mVoicemailHeader.findViewById(R.id.voicemail_container); - mVoicemailTranscription = ( - TextView) mVoicemailHeader.findViewById(R.id.voicemail_transcription); ListView historyList = (ListView) findViewById(R.id.history); historyList.addHeaderView(mVoicemailHeader); // Has voicemail: add the voicemail fragment. Add suitable arguments to set the uri @@ -408,11 +405,6 @@ public class CallDetailActivity extends Activity { nameForDefaultImage = firstDetails.name.toString(); } - if (hasVoicemail() && !TextUtils.isEmpty(firstDetails.transcription)) { - mVoicemailTranscription.setText(firstDetails.transcription); - mVoicemailTranscription.setVisibility(View.VISIBLE); - } - loadContactPhotos( contactUri, photoUri, nameForDefaultImage, lookupKey, contactType); findViewById(R.id.call_detail).setVisibility(View.VISIBLE); |