updating kotlin, gradle, commons

This commit is contained in:
tibbi
2021-02-11 11:29:01 +01:00
parent e3832417aa
commit 9f612c2b65
4 changed files with 6 additions and 6 deletions

View File

@@ -361,7 +361,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
private fun getToggleButtonIcon(isPlaying: Boolean): Drawable {
val drawable = if (isPlaying) R.drawable.ic_pause_vector else R.drawable.ic_play_vector
return resources.getColoredDrawableWithColor(drawable, context.getFABIconColor())
return resources.getColoredDrawableWithColor(drawable, context.getAdjustedPrimaryColor().getContrastColor())
}
private fun skip(forward: Boolean) {

View File

@@ -69,7 +69,7 @@ class RecorderFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
}
toggle_pause_button.apply {
setImageDrawable(resources.getColoredDrawableWithColor(R.drawable.ic_pause_vector, context.getFABIconColor()))
setImageDrawable(resources.getColoredDrawableWithColor(R.drawable.ic_pause_vector, adjustedPrimaryColor.getContrastColor()))
background.applyColorFilter(adjustedPrimaryColor)
}
@@ -83,7 +83,7 @@ class RecorderFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
private fun getToggleButtonIcon(): Drawable {
val drawable = if (status == RECORDING_RUNNING || status == RECORDING_PAUSED) R.drawable.ic_stop_vector else R.drawable.ic_microphone_vector
return resources.getColoredDrawableWithColor(drawable, context.getFABIconColor())
return resources.getColoredDrawableWithColor(drawable, context.getAdjustedPrimaryColor().getContrastColor())
}
private fun toggleRecording() {