diff options
author | Andrew Lee <anwlee@google.com> | 2015-08-26 23:56:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-26 23:56:14 +0000 |
commit | ee11620e21080fdf30868ec45877124d2b66a81d (patch) | |
tree | 2f7c8558aca28c8013c06f3fc5db223fbee61545 /src/com/android/dialer | |
parent | 2b456d24c07cd902a6386ef8dbf84645430e59dd (diff) | |
parent | a119bca4948fcf0e8289f137f402417ea18caedb (diff) |
Merge "Populate TextViews with 00:00 after inflation."
Diffstat (limited to 'src/com/android/dialer')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java | 8 | ||||
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java index 38f6a1773..4a41c0e33 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -273,6 +273,11 @@ public class VoicemailPlaybackLayout extends LinearLayout mStartStopButton.setOnClickListener(mStartStopButtonListener); mPlaybackSpeakerphone.setOnClickListener(mSpeakerphoneListener); mDeleteButton.setOnClickListener(mDeleteButtonListener); + + mPositionText.setText(formatAsMinutesAndSeconds(0)); + mPositionText.setVisibility(View.INVISIBLE); + mTotalDurationText.setText(formatAsMinutesAndSeconds(0)); + mTotalDurationText.setVisibility(View.INVISIBLE); } @Override @@ -387,6 +392,9 @@ public class VoicemailPlaybackLayout extends LinearLayout mStartStopButton.setEnabled(true); mPlaybackSpeakerphone.setEnabled(true); mPlaybackSeek.setEnabled(true); + + mPositionText.setVisibility(View.VISIBLE); + mTotalDurationText.setVisibility(View.VISIBLE); } @Override diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index aea1dac6a..3479dce90 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -517,9 +517,9 @@ public class VoicemailPlaybackPresenter mDuration.set(mMediaPlayer.getDuration()); mPosition = mMediaPlayer.getCurrentPosition(); - mView.enableUiElements(); Log.d(TAG, "onPrepared: mPosition=" + mPosition); mView.setClipPosition(mPosition, mDuration.get()); + mView.enableUiElements(); mMediaPlayer.seekTo(mPosition); if (mIsPlaying) { |