Hot fix for Album cover and Volume icons tint
This commit is contained in:
parent
b7ed2488f2
commit
1cbfa3da13
7 changed files with 13 additions and 18 deletions
|
@ -31,8 +31,8 @@ android {
|
|||
vectorDrawables.useSupportLibrary = true
|
||||
|
||||
applicationId "code.name.monkey.retromusic"
|
||||
versionCode 343
|
||||
versionName '3.2.200'
|
||||
versionCode 344
|
||||
versionName '3.2.203'
|
||||
|
||||
multiDexEnabled true
|
||||
|
||||
|
@ -52,14 +52,11 @@ android {
|
|||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
resValue "string", "cast_app_id", "BA9C3F5E"
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
debug {
|
||||
applicationIdSuffix '.debug'
|
||||
versionNameSuffix ' DEBUG (' + gitBranch() + ')'
|
||||
resValue "string", "cast_app_id", "BA9C3F5E"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,11 +91,10 @@ class AlbumCoverPagerAdapter(fm: FragmentManager, private val dataSet: ArrayList
|
|||
}
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
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 finalLayout = when {
|
||||
PreferenceUtil.getInstance().nowPlayingScreen == NowPlayingScreen.CLASSIC -> R.layout.fragment_album_full_cover
|
||||
PreferenceUtil.getInstance().carouselEffect() -> R.layout.fragment_album_carousel_cover
|
||||
else -> layout
|
||||
}
|
||||
val view = inflater.inflate(finalLayout, container, false)
|
||||
albumCover = view.findViewById(R.id.player_image)
|
||||
|
|
|
@ -111,8 +111,6 @@ class VolumeFragment : Fragment(), SeekBar.OnSeekBarChangeListener, OnAudioVolum
|
|||
|
||||
fun setTintable(color: Int) {
|
||||
ViewUtil.setProgressDrawable(volumeSeekBar, color, true)
|
||||
volumeDown.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN)
|
||||
volumeUp.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN)
|
||||
}
|
||||
|
||||
fun removeThumb() {
|
||||
|
|
|
@ -54,7 +54,7 @@ class PlayerAlbumCoverFragment : AbsMusicServiceFragment(), ViewPager.OnPageChan
|
|||
|| (PreferenceUtil.getInstance().nowPlayingScreen == NowPlayingScreen.FIT))) {
|
||||
viewPager.clipToPadding = false
|
||||
viewPager.setPadding(40, 40, 40, 0)
|
||||
viewPager.pageMargin = 16
|
||||
viewPager.pageMargin = 0
|
||||
viewPager.setPageTransformer(false, CarousalPagerTransformer(requireContext()))
|
||||
} else {
|
||||
viewPager.offscreenPageLimit = 2
|
||||
|
|
|
@ -124,7 +124,7 @@ class BlurPlaybackControlsFragment : AbsPlayerControlsFragment() {
|
|||
|
||||
text.setTextColor(colorFinal)
|
||||
TintHelper.setTintAuto(progressSlider, colorFinal, false)
|
||||
volumeFragment?.setTintable(colorFinal)
|
||||
volumeFragment?.setTintableColor(colorFinal)
|
||||
setFabColor(colorFinal)
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
app:cardCornerRadius="8dp">
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/player_image"
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
android:id="@+id/player_album_art_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardElevation="8dp"
|
||||
app:cardUseCompatPadding="true">
|
||||
android:layout_margin="16dp"
|
||||
app:cardElevation="6dp"
|
||||
app:cardCornerRadius="8dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/player_image"
|
||||
|
|
Loading…
Reference in a new issue