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