Tweak manga info header backdrop
(cherry picked from commit cef1c4b8a1)
# Conflicts:
# app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package eu.kanade.tachiyomi.ui.manga.info
|
||||
|
||||
import android.graphics.PorterDuff
|
||||
import android.os.Build
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -21,6 +23,7 @@ import eu.kanade.tachiyomi.source.online.HttpSource
|
||||
import eu.kanade.tachiyomi.source.online.all.MangaDex
|
||||
import eu.kanade.tachiyomi.ui.manga.MangaController
|
||||
import eu.kanade.tachiyomi.util.system.copyToClipboard
|
||||
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||
import exh.MERGED_SOURCE_ID
|
||||
import exh.source.getMainSource
|
||||
import exh.util.SourceTagsUtil
|
||||
@@ -296,6 +299,14 @@ class MangaInfoHeaderAdapter(
|
||||
.into(it)
|
||||
}
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
|
||||
@Suppress("DEPRECATION")
|
||||
binding.backdropOverlay.background.setColorFilter(
|
||||
view.context.getResourceColor(android.R.attr.colorBackground),
|
||||
PorterDuff.Mode.SRC_ATOP
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -185,6 +185,7 @@ class MangaInfoItemAdapter(
|
||||
|
||||
// backgroundTint attribute doesn't work properly on Android 5
|
||||
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP) {
|
||||
@Suppress("DEPRECATION")
|
||||
binding.mangaInfoToggleMoreScrim.background.setColorFilter(
|
||||
view.context.getResourceColor(android.R.attr.colorBackground),
|
||||
PorterDuff.Mode.SRC_ATOP
|
||||
|
||||
Reference in New Issue
Block a user