Cleaned up and rewrote big parts of the MusicService. Added gapless playback option in settings.
This commit is contained in:
parent
1908d1fe78
commit
3bdecbebe4
10 changed files with 471 additions and 271 deletions
|
|
@ -42,6 +42,7 @@ public final class PreferenceUtils {
|
|||
public static final String PLAYBACK_CONTROLLER_CARD_NOW_PLAYING = "playback_controller_card_now_playing";
|
||||
public static final String FADE_PLAY_PAUSE = "fade_play_pause";
|
||||
public static final String COLORED_NOTIFICATION = "colored_notification";
|
||||
public static final String GAPLESS_PLAYBACK = "gapless_playback";
|
||||
|
||||
private static PreferenceUtils sInstance;
|
||||
|
||||
|
|
@ -193,10 +194,14 @@ public final class PreferenceUtils {
|
|||
return mPreferences.getBoolean(ALTERNATIVE_PROGRESS_SLIDER_NOW_PLAYING, false);
|
||||
}
|
||||
|
||||
public final boolean fadePlayPauseAndInterruptions() {
|
||||
public final boolean fadePlayPause() {
|
||||
return mPreferences.getBoolean(FADE_PLAY_PAUSE, true);
|
||||
}
|
||||
|
||||
public final boolean gaplessPlayback() {
|
||||
return mPreferences.getBoolean(GAPLESS_PLAYBACK, true);
|
||||
}
|
||||
|
||||
// public final boolean downloadMissingArtistImages() {
|
||||
// return mPreferences.getBoolean(DOWNLOAD_MISSING_ARTIST_IMAGES, true);
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue