Fix updating of seek bar position while seeking.

We stop updating the seek bar position in the background while seeking.
However, if the background task was running at the time we stop it, it
will still update the position once more, with the default value of
zero, which made the seek bar jump to zero at what seemed like random
times.

Instead, if the updater has been stopped, simply return immediately.

Bug: 5094799
Change-Id: I3f9f52ffcce442bb19f1f1a6731161d7fc2e94cd
diff --git a/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java
index becc133..9a84f7c 100644
--- a/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java
+++ b/src/com/android/contacts/voicemail/VoicemailPlaybackPresenter.java
@@ -555,9 +555,11 @@
             public void run() {
                 int currentPosition = 0;
                 synchronized (mLock) {
-                    if (mScheduledFuture != null) {
-                        currentPosition = mPlayer.getCurrentPosition();
+                    if (mScheduledFuture == null) {
+                        // This task has been canceled. Just stop now.
+                        return;
                     }
+                    currentPosition = mPlayer.getCurrentPosition();
                 }
                 mView.setClipPosition(currentPosition, mDuration.get());
             }