Removing to Classic them to improve
This commit is contained in:
parent
c150a25d21
commit
12425e2692
5 changed files with 9 additions and 9 deletions
|
@ -24,7 +24,7 @@ android {
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId "code.name.monkey.retromusic"
|
applicationId "code.name.monkey.retromusic"
|
||||||
versionCode 428
|
versionCode 429
|
||||||
versionName '3.5.300'
|
versionName '3.5.300'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
|
@ -257,7 +257,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(),
|
||||||
Tiny -> TinyPlayerFragment()
|
Tiny -> TinyPlayerFragment()
|
||||||
Peak -> PeakPlayerFragment()
|
Peak -> PeakPlayerFragment()
|
||||||
Circle -> CirclePlayerFragment()
|
Circle -> CirclePlayerFragment()
|
||||||
Classic -> ClassicPlayerFragment()
|
//Classic -> ClassicPlayerFragment()
|
||||||
else -> PlayerFragment()
|
else -> PlayerFragment()
|
||||||
} // must implement AbsPlayerFragment
|
} // must implement AbsPlayerFragment
|
||||||
supportFragmentManager.beginTransaction()
|
supportFragmentManager.beginTransaction()
|
||||||
|
@ -325,9 +325,9 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(),
|
||||||
super.setNavigationbarColor(paletteColor)
|
super.setNavigationbarColor(paletteColor)
|
||||||
super.setLightNavigationBar(isColorLight)
|
super.setLightNavigationBar(isColorLight)
|
||||||
super.setLightStatusbar(false)
|
super.setLightStatusbar(false)
|
||||||
} else if (cps == Classic ) {
|
} /*else if (cps == Classic ) {
|
||||||
super.setLightStatusbar(false)
|
super.setLightStatusbar(false)
|
||||||
} else if (cps == Fit) {
|
}*/ else if (cps == Fit) {
|
||||||
super.setLightStatusbar(false)
|
super.setLightStatusbar(false)
|
||||||
} else {
|
} else {
|
||||||
super.setLightStatusbar(
|
super.setLightStatusbar(
|
||||||
|
|
|
@ -83,9 +83,9 @@ class AlbumCoverPagerAdapter(
|
||||||
): View? {
|
): View? {
|
||||||
val view = inflater.inflate(getLayoutWithPlayerTheme(), container, false)
|
val view = inflater.inflate(getLayoutWithPlayerTheme(), container, false)
|
||||||
albumCover = view.findViewById(R.id.player_image)
|
albumCover = view.findViewById(R.id.player_image)
|
||||||
/*albumCover.setOnClickListener {
|
albumCover.setOnClickListener {
|
||||||
NavigationUtil.goToLyrics(requireActivity())
|
NavigationUtil.goToLyrics(requireActivity())
|
||||||
}*/
|
}
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ class AlbumCoverPagerAdapter(
|
||||||
Card,
|
Card,
|
||||||
Fit,
|
Fit,
|
||||||
Tiny,
|
Tiny,
|
||||||
Classic,
|
//Classic,
|
||||||
Full -> R.layout.fragment_album_full_cover
|
Full -> R.layout.fragment_album_full_cover
|
||||||
else -> {
|
else -> {
|
||||||
if (PreferenceUtil.getInstance(requireContext()).carouselEffect()
|
if (PreferenceUtil.getInstance(requireContext()).carouselEffect()
|
||||||
|
|
|
@ -16,7 +16,7 @@ enum class NowPlayingScreen constructor(
|
||||||
BlurCard(R.string.blur_card, R.drawable.np_blur_card, 9),
|
BlurCard(R.string.blur_card, R.drawable.np_blur_card, 9),
|
||||||
Card(R.string.card, R.drawable.np_card, 6),
|
Card(R.string.card, R.drawable.np_card, 6),
|
||||||
Circle(R.string.circle, R.drawable.np_minimalistic_circle, 15),
|
Circle(R.string.circle, R.drawable.np_minimalistic_circle, 15),
|
||||||
Classic(R.string.classic, R.drawable.np_classic, 16),
|
//Classic(R.string.classic, R.drawable.np_classic, 16),
|
||||||
Color(R.string.color, R.drawable.np_color, 5),
|
Color(R.string.color, R.drawable.np_color, 5),
|
||||||
Fit(R.string.fit, R.drawable.np_fit, 12),
|
Fit(R.string.fit, R.drawable.np_fit, 12),
|
||||||
Flat(R.string.flat, R.drawable.np_flat, 1),
|
Flat(R.string.flat, R.drawable.np_flat, 1),
|
||||||
|
|
|
@ -51,7 +51,7 @@ class PlayerAlbumCoverFragment : AbsMusicServiceFragment(), ViewPager.OnPageChan
|
||||||
val ratio = metrics.heightPixels.toFloat() / metrics.widthPixels.toFloat()
|
val ratio = metrics.heightPixels.toFloat() / metrics.widthPixels.toFloat()
|
||||||
|
|
||||||
|
|
||||||
if (nps == Full || nps == Classic || nps == Fit) {
|
if (nps == Full || /*nps == Classic ||*/ nps == Fit) {
|
||||||
viewPager.offscreenPageLimit = 2
|
viewPager.offscreenPageLimit = 2
|
||||||
} else if (PreferenceUtil.getInstance(requireContext()).carouselEffect()) {
|
} else if (PreferenceUtil.getInstance(requireContext()).carouselEffect()) {
|
||||||
viewPager.clipToPadding = false
|
viewPager.clipToPadding = false
|
||||||
|
|
Loading…
Reference in a new issue