added home banner toggle

This commit is contained in:
h4h13 2018-08-05 22:04:30 +05:30
parent 0e29183a60
commit 2d55b14c0f

View file

@ -25,6 +25,7 @@ import java.util.ArrayList;
public final class PreferenceUtil { public final class PreferenceUtil {
public static final String KEEP_SCREEN_ON = "keep_screen_on"; public static final String KEEP_SCREEN_ON = "keep_screen_on";
public static final String TOGGLE_HOME_BANNER = "toggle_home_banner";
public static final String NOW_PLAYING_SCREEN_ID = "now_playing_screen_id"; public static final String NOW_PLAYING_SCREEN_ID = "now_playing_screen_id";
public static final String CAROUSEL_EFFECT = "carousel_effect"; public static final String CAROUSEL_EFFECT = "carousel_effect";
public static final String COLORED_NOTIFICATION = "colored_notification"; public static final String COLORED_NOTIFICATION = "colored_notification";
@ -146,6 +147,10 @@ public final class PreferenceUtil {
return mPreferences.getString(ARTIST_SONG_SORT_ORDER, SortOrder.ArtistSongSortOrder.SONG_A_Z); return mPreferences.getString(ARTIST_SONG_SORT_ORDER, SortOrder.ArtistSongSortOrder.SONG_A_Z);
} }
public final boolean toggleHomeBanner() {
return mPreferences.getBoolean(TOGGLE_HOME_BANNER, false);
}
public final String getArtistAlbumSortOrder() { public final String getArtistAlbumSortOrder() {
return mPreferences return mPreferences
.getString(ARTIST_ALBUM_SORT_ORDER, SortOrder.ArtistAlbumSortOrder.ALBUM_YEAR); .getString(ARTIST_ALBUM_SORT_ORDER, SortOrder.ArtistAlbumSortOrder.ALBUM_YEAR);