From ba2f4a8ba7891224dbd9139ee798b1b2375f263b Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Thu, 17 Sep 2015 18:11:53 -0700 Subject: Re-enable "start" button if loading voicemail fails. An enabled "start" button is a cue to the user that they can re-attempt downloading voicemail manually if the first attempt fails. Bug: 23899613 Change-Id: Ie5baf6cf45c48d0f1988d01dbed3e31919510869 --- src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java index 698530b69..440d92134 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -315,6 +315,7 @@ public class VoicemailPlaybackLayout extends LinearLayout mStateText.setText(getString(R.string.voicemail_playback_error)); } + @Override public void onSpeakerphoneOn(boolean on) { if (on) { mPlaybackSpeakerphone.setImageResource(R.drawable.ic_volume_up_24dp); @@ -352,7 +353,7 @@ public class VoicemailPlaybackLayout extends LinearLayout @Override public void setFetchContentTimeout() { - disableUiElements(); + mStartStopButton.setEnabled(true); mStateText.setText(getString(R.string.voicemail_fetching_timout)); } -- cgit v1.2.3