Improved carousel effect

This commit is contained in:
h4h13 2019-07-31 00:00:19 +05:30
parent 310cfe8491
commit 0b025f3516
10 changed files with 234 additions and 73 deletions

View file

@ -94,6 +94,8 @@ class AlbumCoverPagerAdapter(fm: FragmentManager, private val dataSet: ArrayList
var finalLayout = layout
if (PreferenceUtil.getInstance().nowPlayingScreen == NowPlayingScreen.CLASSIC) {
finalLayout = R.layout.fragment_album_full_cover
} else if (PreferenceUtil.getInstance().carouselEffect()) {
finalLayout= R.layout.fragment_album_carousel_cover;
}
val view = inflater.inflate(finalLayout, container, false)
albumCover = view.findViewById(R.id.player_image)