Support song ordering; add/fix album year sort

This commit is contained in:
Nicholas Narsing 2018-04-28 11:47:05 -04:00
commit 60cb868beb
No known key found for this signature in database
GPG key ID: 6C867A2AC16B645A
8 changed files with 69 additions and 23 deletions

View file

@ -254,6 +254,12 @@ public final class PreferenceUtil {
return mPreferences.getString(SONG_SORT_ORDER, SortOrder.SongSortOrder.SONG_A_Z);
}
public void setSongSortOrder(final String sortOrder) {
final SharedPreferences.Editor editor = mPreferences.edit();
editor.putString(SONG_SORT_ORDER, sortOrder);
editor.apply();
}
public final String getGenreSortOrder() {
return mPreferences.getString(GENRE_SORT_ORDER, SortOrder.GenreSortOrder.GENRE_A_Z);
}