Fix album details sorting
This commit is contained in:
parent
df7cb7ab49
commit
49e18ec828
5 changed files with 11 additions and 9 deletions
|
@ -13,8 +13,8 @@ android {
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId "code.name.monkey.retromusic"
|
applicationId "code.name.monkey.retromusic"
|
||||||
versionCode 370
|
versionCode 371
|
||||||
versionName '3.4.000-beta12'
|
versionName '3.4.000-beta-final'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -128,8 +128,6 @@ class AlbumDetailsActivity : AbsSlidingMusicPanelActivity(), AlbumDetailsView {
|
||||||
supportActionBar!!.title = null
|
supportActionBar!!.title = null
|
||||||
|
|
||||||
val primaryColor = ThemeStore.primaryColor(this)
|
val primaryColor = ThemeStore.primaryColor(this)
|
||||||
//TintHelper.setTintAuto(contentContainer!!, primaryColor, true)
|
|
||||||
|
|
||||||
|
|
||||||
collapsingToolbarLayout?.let {
|
collapsingToolbarLayout?.let {
|
||||||
it.setContentScrimColor(primaryColor)
|
it.setContentScrimColor(primaryColor)
|
||||||
|
@ -317,7 +315,11 @@ class AlbumDetailsActivity : AbsSlidingMusicPanelActivity(), AlbumDetailsView {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun reload() {
|
private fun reload() {
|
||||||
albumDetailsPresenter.loadAlbum(intent.extras!!.getInt(ArtistDetailActivity.EXTRA_ARTIST_ID))
|
if (intent.extras!!.containsKey(EXTRA_ALBUM_ID)) {
|
||||||
|
intent.extras?.getInt(EXTRA_ALBUM_ID)?.let { albumDetailsPresenter.loadAlbum(it) }
|
||||||
|
} else {
|
||||||
|
finish()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
|
@ -64,7 +64,6 @@ class ArtistImageFetcher(
|
||||||
} catch (ignore: IOException) {
|
} catch (ignore: IOException) {
|
||||||
// can't do much about it
|
// can't do much about it
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ import code.name.monkey.retromusic.fragments.AlbumCoverStyle;
|
||||||
import code.name.monkey.retromusic.fragments.NowPlayingScreen;
|
import code.name.monkey.retromusic.fragments.NowPlayingScreen;
|
||||||
import code.name.monkey.retromusic.fragments.mainactivity.folders.FoldersFragment;
|
import code.name.monkey.retromusic.fragments.mainactivity.folders.FoldersFragment;
|
||||||
import code.name.monkey.retromusic.helper.SortOrder;
|
import code.name.monkey.retromusic.helper.SortOrder;
|
||||||
|
import code.name.monkey.retromusic.helper.SortOrder.AlbumSongSortOrder;
|
||||||
import code.name.monkey.retromusic.model.CategoryInfo;
|
import code.name.monkey.retromusic.model.CategoryInfo;
|
||||||
import code.name.monkey.retromusic.transform.CascadingPageTransformer;
|
import code.name.monkey.retromusic.transform.CascadingPageTransformer;
|
||||||
import code.name.monkey.retromusic.transform.DepthTransformation;
|
import code.name.monkey.retromusic.transform.DepthTransformation;
|
||||||
|
@ -229,7 +230,7 @@ public final class PreferenceUtil {
|
||||||
|
|
||||||
public final String getAlbumSongSortOrder() {
|
public final String getAlbumSongSortOrder() {
|
||||||
return mPreferences
|
return mPreferences
|
||||||
.getString(ALBUM_SONG_SORT_ORDER, SortOrder.AlbumSongSortOrder.SONG_TRACK_LIST);
|
.getString(ALBUM_SONG_SORT_ORDER, AlbumSongSortOrder.SONG_TRACK_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final String getSongSortOrder() {
|
public final String getSongSortOrder() {
|
||||||
|
@ -639,7 +640,7 @@ public final class PreferenceUtil {
|
||||||
|
|
||||||
public String getAlbumDetailSongSortOrder() {
|
public String getAlbumDetailSongSortOrder() {
|
||||||
return mPreferences
|
return mPreferences
|
||||||
.getString(ALBUM_DETAIL_SONG_SORT_ORDER, SortOrder.AlbumSongSortOrder.SONG_TRACK_LIST);
|
.getString(ALBUM_DETAIL_SONG_SORT_ORDER, AlbumSongSortOrder.SONG_TRACK_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAlbumDetailSongSortOrder(String sortOrder) {
|
public void setAlbumDetailSongSortOrder(String sortOrder) {
|
||||||
|
|
Loading…
Reference in a new issue