diff --git a/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.java b/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.java index 85561de5..e3c4743a 100644 --- a/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.java +++ b/app/src/main/java/code/name/monkey/retromusic/util/PreferenceUtil.java @@ -25,6 +25,7 @@ import java.util.ArrayList; public final class PreferenceUtil { 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 CAROUSEL_EFFECT = "carousel_effect"; 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); } + public final boolean toggleHomeBanner() { + return mPreferences.getBoolean(TOGGLE_HOME_BANNER, false); + } + public final String getArtistAlbumSortOrder() { return mPreferences .getString(ARTIST_ALBUM_SORT_ORDER, SortOrder.ArtistAlbumSortOrder.ALBUM_YEAR);