added home banner toggle
This commit is contained in:
parent
0e29183a60
commit
2d55b14c0f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue