New now playing screen. Work in progress!
This commit is contained in:
parent
479a7d81cd
commit
1cde43af07
27 changed files with 889 additions and 571 deletions
|
|
@ -118,7 +118,7 @@ public class MusicUtil {
|
|||
public static String getReadableDurationString(long songDurationMillis) {
|
||||
long minutes = (songDurationMillis / 1000) / 60;
|
||||
long seconds = (songDurationMillis / 1000) % 60;
|
||||
return String.format("%02d:%02d", minutes, seconds);
|
||||
return String.format("%01d:%02d", minutes, seconds);
|
||||
}
|
||||
|
||||
//iTunes uses for example 1002 for track 2 CD1 or 3011 for track 11 CD3.
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class PreferenceUtil {
|
|||
|
||||
public static final String OPAQUE_TOOLBAR_NOW_PLAYING = "opaque_toolbar_now_playing";
|
||||
public static final String OPAQUE_STATUSBAR_NOW_PLAYING = "opaque_statusbar_now_playing";
|
||||
public static final String FORCE_SQUARE_ALBUM_ART = "force_square_album_art";
|
||||
public static final String FORCE_SQUARE_ALBUM_COVER = "force_square_album_art";
|
||||
public static final String LARGER_TITLE_BOX_NOW_PLAYING = "larger_title_box_now_playing";
|
||||
public static final String ALTERNATIVE_PROGRESS_SLIDER_NOW_PLAYING = "alternative_progress_slider_now_playing";
|
||||
public static final String PLAYBACK_CONTROLLER_CARD_NOW_PLAYING = "playback_controller_card_now_playing";
|
||||
|
|
@ -167,8 +167,8 @@ public final class PreferenceUtil {
|
|||
return mPreferences.getBoolean(OPAQUE_TOOLBAR_NOW_PLAYING, false);
|
||||
}
|
||||
|
||||
public final boolean forceAlbumArtSquared() {
|
||||
return mPreferences.getBoolean(FORCE_SQUARE_ALBUM_ART, false);
|
||||
public final boolean forceSquareAlbumCover() {
|
||||
return mPreferences.getBoolean(FORCE_SQUARE_ALBUM_COVER, false);
|
||||
}
|
||||
|
||||
public final boolean playbackControllerCardNowPlaying() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue