aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005/dsub/service
diff options
context:
space:
mode:
authorMarcus <marcuswrogers@gmail.com>2017-04-12 09:19:26 -0700
committerMarcus <marcuswrogers@gmail.com>2017-04-12 09:19:26 -0700
commitbb221e09ffe719ecd2d1c41aeba492ac2adf6151 (patch)
tree9d6a6022165b89690b598b5f697b68d8c2517277 /app/src/main/java/github/daneren2005/dsub/service
parent977526485a1b9999c1f441121b6529972ea6ee8b (diff)
downloaddsub-bb221e09ffe719ecd2d1c41aeba492ac2adf6151.tar.gz
dsub-bb221e09ffe719ecd2d1c41aeba492ac2adf6151.tar.bz2
dsub-bb221e09ffe719ecd2d1c41aeba492ac2adf6151.zip
Enhanced Playback speed UI using shehabic/Droppy library and persistence of speed settings between songs and non-songs.
Diffstat (limited to 'app/src/main/java/github/daneren2005/dsub/service')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 6d85d128..77ef971c 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -873,7 +873,7 @@ public class DownloadService extends Service {
this.currentPlaying.setPlaying(false);
}
if(delayUpdateProgress != DEFAULT_DELAY_UPDATE_PROGRESS && !isNextPlayingSameAlbum(currentPlaying, this.currentPlaying)) {
- resetPlaybackSpeed();
+// resetPlaybackSpeed();
}
this.currentPlaying = currentPlaying;
if(currentPlaying == null) {
@@ -2657,7 +2657,10 @@ public class DownloadService extends Service {
}
public void setPlaybackSpeed(float playbackSpeed) {
- Util.getPreferences(this).edit().putFloat(Constants.PREFERENCES_KEY_PLAYBACK_SPEED, playbackSpeed).commit();
+ if(currentPlaying.isSong())
+ Util.getPreferences(this).edit().putFloat(Constants.PREFERENCES_KEY_SONG_PLAYBACK_SPEED, playbackSpeed).commit();
+ else
+ Util.getPreferences(this).edit().putFloat(Constants.PREFERENCES_KEY_PLAYBACK_SPEED, playbackSpeed).commit();
if(mediaPlayer != null && (playerState == PREPARED || playerState == STARTED || playerState == PAUSED || playerState == PAUSED_TEMP)) {
applyPlaybackParamsMain();
}