move playlist fragment as the first one, make Artists the default
This commit is contained in:
parent
c5cc550119
commit
0295efca3b
3 changed files with 6 additions and 6 deletions
|
@ -58,7 +58,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.31.4'
|
implementation 'com.simplemobiletools:commons:5.31.5'
|
||||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||||
implementation 'androidx.media:media:1.2.0'
|
implementation 'androidx.media:media:1.2.0'
|
||||||
|
|
|
@ -200,7 +200,7 @@ class MainActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
val tabLabels = arrayOf(getString(R.string.artists), getString(R.string.albums), getString(R.string.tracks), getString(R.string.playlists))
|
val tabLabels = arrayOf(getString(R.string.playlists), getString(R.string.artists), getString(R.string.albums), getString(R.string.tracks))
|
||||||
main_tabs_holder.apply {
|
main_tabs_holder.apply {
|
||||||
setTabTextColors(config.textColor, getAdjustedPrimaryColor())
|
setTabTextColors(config.textColor, getAdjustedPrimaryColor())
|
||||||
setSelectedTabIndicatorColor(getAdjustedPrimaryColor())
|
setSelectedTabIndicatorColor(getAdjustedPrimaryColor())
|
||||||
|
|
|
@ -29,9 +29,9 @@ class ViewPagerAdapter(val activity: SimpleActivity) : PagerAdapter() {
|
||||||
override fun isViewFromObject(view: View, item: Any) = view == item
|
override fun isViewFromObject(view: View, item: Any) = view == item
|
||||||
|
|
||||||
private fun getFragment(position: Int) = when (position) {
|
private fun getFragment(position: Int) = when (position) {
|
||||||
0 -> R.layout.fragment_artists
|
0 -> R.layout.fragment_playlists
|
||||||
1 -> R.layout.fragment_albums
|
1 -> R.layout.fragment_artists
|
||||||
2 -> R.layout.fragment_tracks
|
2 -> R.layout.fragment_albums
|
||||||
else -> R.layout.fragment_playlists
|
else -> R.layout.fragment_tracks
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue