Tweak manga info header backdrop

This commit is contained in:
arkon
2020-12-27 17:58:03 -05:00
parent 2e8791a101
commit cef1c4b8a1
3 changed files with 20 additions and 20 deletions

View File

@ -311,10 +311,14 @@ class MangaInfoHeaderAdapter(
// backgroundTint attribute doesn't work properly on Android 5
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
binding.mangaInfoToggleMoreScrim.background.setColorFilter(
view.context.getResourceColor(android.R.attr.colorBackground),
PorterDuff.Mode.SRC_ATOP
)
listOf(binding.backdropOverlay, binding.mangaInfoToggleMoreScrim)
.forEach {
@Suppress("DEPRECATION")
it.background.setColorFilter(
view.context.getResourceColor(android.R.attr.colorBackground),
PorterDuff.Mode.SRC_ATOP
)
}
}
}