diff options
author | Ta-wei Yen <twyen@google.com> | 2016-03-22 19:02:20 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-22 19:02:20 +0000 |
commit | 2b79a998ef06ec2f317632f7e9271c5e8a29f5ab (patch) | |
tree | e3c292f9810df44df68449c5d4079c08ad0c6525 /src/com/android | |
parent | 0790a2abada4a69413a3ed48deab6b7781e8db08 (diff) | |
parent | 47af91907bc39b7b94173cc14809b932f516b1a2 (diff) |
Clear voicemail status text when loading succeeded
am: 47af919
* commit '47af91907bc39b7b94173cc14809b932f516b1a2':
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) { |