aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-24 20:13:24 -0700
committerScott Jackson <daneren2005@gmail.com>2014-03-24 20:13:24 -0700
commit16c52863b91af751eaa108fdc816c1c71e7c8fdd (patch)
tree9b11d477b3f728f168f83c111204ecee2f71844a /src/github/daneren2005
parentc2d4b6d2536bd9ad801549372600a8d1b32e6506 (diff)
downloaddsub-16c52863b91af751eaa108fdc816c1c71e7c8fdd.tar.gz
dsub-16c52863b91af751eaa108fdc816c1c71e7c8fdd.tar.bz2
dsub-16c52863b91af751eaa108fdc816c1c71e7c8fdd.zip
Don't allow seek while buffering
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index 9f2b10a9..24113e97 100644
--- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -15,6 +15,7 @@ import android.os.Bundle;
import android.os.Handler;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.MediaRouteButton;
+import android.util.Log;
import android.view.ContextMenu;
import android.view.Display;
import android.view.GestureDetector;
@@ -1169,7 +1170,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
if(!seekInProgress) {
progressBar.setProgress(millisPlayed);
}
- progressBar.setEnabled(currentPlaying.isWorkDone() || isJukeboxEnabled);
+ progressBar.setEnabled((currentPlaying.isWorkDone() || isJukeboxEnabled) && playerState != PlayerState.PREPARING);
} else {
positionTextView.setText("0:00");
durationTextView.setText("-:--");