diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-22 17:23:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-03-22 17:23:12 +0000 |
commit | 25f8efdf613624fdbcc656b3403a6ff1bd28085e (patch) | |
tree | 15d387dcb0e946f7645f40ad5c0c442cd5613777 /src/com/android | |
parent | 1fa3f7f8127377461c6000d1f58e73dc109744c0 (diff) | |
parent | f35cf6c6311aa253d679f61b8fd43babce4a90c3 (diff) |
Merge "Clear voicemail status text when loading succeeded"
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java | 5 | ||||
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java index d4d294e8d..7d6fe78d1 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -428,6 +428,11 @@ public class VoicemailPlaybackLayout extends LinearLayout } @Override + public void setSuccess() { + mStateText.setText(null); + } + + @Override public void setIsFetchingContent() { disableUiElements(); mStateText.setText(getString(R.string.voicemail_fetching_content)); diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 5924fb453..e224ddc2a 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -84,6 +84,7 @@ public class VoicemailPlaybackPresenter implements MediaPlayer.OnPreparedListene void onPlaybackStopped(); void onSpeakerphoneOn(boolean on); void setClipPosition(int clipPositionInMillis, int clipLengthInMillis); + void setSuccess(); void setFetchContentTimeout(); void setIsFetchingContent(); void onVoicemailArchiveSucceded(Uri voicemailUri); @@ -606,6 +607,7 @@ public class VoicemailPlaybackPresenter implements MediaPlayer.OnPreparedListene Log.d(TAG, "onPrepared: mPosition=" + mPosition); mView.setClipPosition(mPosition, mDuration.get()); mView.enableUiElements(); + mView.setSuccess(); mMediaPlayer.seekTo(mPosition); if (mIsPlaying) { |