diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 15:42:39 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 15:42:39 -0800 |
commit | b270204acd661067f406e1afe8b3822fb7f45405 (patch) | |
tree | 61210af179246ff569ef583f24dee45253640496 /src/github | |
parent | 0e89166dfc4647e23b2e8e833fa581a50c5b49b8 (diff) | |
download | dsub-b270204acd661067f406e1afe8b3822fb7f45405.tar.gz dsub-b270204acd661067f406e1afe8b3822fb7f45405.tar.bz2 dsub-b270204acd661067f406e1afe8b3822fb7f45405.zip |
Fix next with repeat all not working at end for some places
Diffstat (limited to 'src/github')
3 files changed, 5 insertions, 11 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index 423e1c23..9b1d307a 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -189,9 +189,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity { return null;
}
- if (getDownloadService().getCurrentPlayingIndex() < getDownloadService().size() - 1) {
- getDownloadService().next();
- }
+ getDownloadService().next();
return null;
}
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index f345334f..ea8e8c3c 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -1281,11 +1281,9 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe // Right to Left swipe
if (e1.getX() - e2.getX() > swipeDistance && Math.abs(velocityX) > swipeVelocity) {
warnIfNetworkOrStorageUnavailable();
- if (downloadService.getCurrentPlayingIndex() < downloadService.size() - 1) {
- downloadService.next();
- onCurrentChanged();
- onProgressChanged();
- }
+ downloadService.next();
+ onCurrentChanged();
+ onProgressChanged();
return true;
}
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java index f0b7ceb1..021c214a 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceLifecycleSupport.java @@ -323,9 +323,7 @@ public class DownloadServiceLifecycleSupport { break; case RemoteControlClient.FLAG_KEY_MEDIA_NEXT: case KeyEvent.KEYCODE_MEDIA_NEXT: - if (downloadService.getCurrentPlayingIndex() < downloadService.size() - 1) { - downloadService.next(); - } + downloadService.next(); break; case RemoteControlClient.FLAG_KEY_MEDIA_STOP: case KeyEvent.KEYCODE_MEDIA_STOP: |