diff options
-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 158ed5834..755460114 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -240,6 +240,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 @@ -355,6 +360,9 @@ public class VoicemailPlaybackLayout extends LinearLayout mStartStopButton.setEnabled(true); mPlaybackSpeakerphone.setEnabled(true); mPlaybackSeek.setEnabled(true); + + mPositionText.setVisibility(View.VISIBLE); + mTotalDurationText.setVisibility(View.VISIBLE); } private String getString(int resId) { diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 7270af787..056dcc64e 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -515,9 +515,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) { |