Fixed save button colors of Tag editor
This commit is contained in:
parent
d82ebd4225
commit
8cf092ab0b
2 changed files with 11 additions and 4 deletions
|
@ -215,12 +215,16 @@ class AlbumTagEditorActivity : AbsTagEditorActivity<ActivityAlbumTagEditorBindin
|
||||||
override fun setColors(color: Int) {
|
override fun setColors(color: Int) {
|
||||||
super.setColors(color)
|
super.setColors(color)
|
||||||
saveFab.backgroundTintList = ColorStateList.valueOf(color)
|
saveFab.backgroundTintList = ColorStateList.valueOf(color)
|
||||||
saveFab.iconTint = ColorStateList.valueOf(
|
saveFab.backgroundTintList = ColorStateList.valueOf(color)
|
||||||
|
ColorStateList.valueOf(
|
||||||
MaterialValueHelper.getPrimaryTextColor(
|
MaterialValueHelper.getPrimaryTextColor(
|
||||||
this,
|
this,
|
||||||
color.isColorLight
|
color.isColorLight
|
||||||
)
|
)
|
||||||
)
|
).also {
|
||||||
|
saveFab.iconTint = it
|
||||||
|
saveFab.setTextColor(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -137,12 +137,15 @@ class SongTagEditorActivity : AbsTagEditorActivity<ActivitySongTagEditorBinding>
|
||||||
override fun setColors(color: Int) {
|
override fun setColors(color: Int) {
|
||||||
super.setColors(color)
|
super.setColors(color)
|
||||||
saveFab.backgroundTintList = ColorStateList.valueOf(color)
|
saveFab.backgroundTintList = ColorStateList.valueOf(color)
|
||||||
saveFab.iconTint = ColorStateList.valueOf(
|
ColorStateList.valueOf(
|
||||||
MaterialValueHelper.getPrimaryTextColor(
|
MaterialValueHelper.getPrimaryTextColor(
|
||||||
this,
|
this,
|
||||||
color.isColorLight
|
color.isColorLight
|
||||||
)
|
)
|
||||||
)
|
).also {
|
||||||
|
saveFab.iconTint = it
|
||||||
|
saveFab.setTextColor(it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun save() {
|
override fun save() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue