diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-18 22:37:10 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-18 22:37:10 +0000 |
commit | 92bfd1d713212f5f0962fb05a289526d9966b8db (patch) | |
tree | c3aa816ce93c534a7b76813ab820dcc2c0630d3f | |
parent | 907f66274a9dcdc399fc6949d72a62531a3aa633 (diff) | |
parent | 4a5c4063642a0bee0bebfa3b87b33bf8130a1ea1 (diff) |
am 4a5c4063: am c1167e9a: Remove voicemail transcript from details.
* commit '4a5c4063642a0bee0bebfa3b87b33bf8130a1ea1':
Remove voicemail transcript from details.
-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); |