From 2d55b14c0fc242d81a604bb0f383a972fbf672f7 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Sun, 5 Aug 2018 22:04:30 +0530 Subject: [PATCH] added home banner toggle --- .../code/name/monkey/retromusic/util/PreferenceUtil.java | 5 +++++ 1 file changed, 5 insertions(+) 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);