Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70b010e8 authored by Nancy Chen's avatar Nancy Chen Committed by Android Git Automerger
Browse files

am 4fd6bf29: am 5559d416: Merge "Pause playback when voicemail is deleted." into mnc-dev

* commit '4fd6bf29':
  Pause playback when voicemail is deleted.
parents 597e4df3 4fd6bf29
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -183,6 +183,7 @@ public class VoicemailPlaybackLayout extends LinearLayout
            if (mPresenter == null) {
                return;
            }
            mPresenter.pausePlayback();
            CallLogAsyncTaskUtil.deleteVoicemail(mContext, mVoicemailUri, null);
        }
    };
+5 −2
Original line number Diff line number Diff line
@@ -627,7 +627,8 @@ public class VoicemailPlaybackPresenter
            mMediaPlayer.pause();
        }

        mPosition = mMediaPlayer.getCurrentPosition();
        mPosition = mMediaPlayer == null ? 0 : mMediaPlayer.getCurrentPosition();

        Log.d(TAG, "Paused playback at " + mPosition + ".");

        if (mView != null) {
@@ -646,7 +647,9 @@ public class VoicemailPlaybackPresenter
     * playing to know whether to resume playback once the user selects a new position.
     */
    public void pausePlaybackForSeeking() {
        if (mMediaPlayer != null) {
            mShouldResumePlaybackAfterSeeking = mMediaPlayer.isPlaying();
        }
        pausePlayback();
    }