Blur manga info header image
Similar to J2K. This only applies on Android 12+. (cherry picked from commit ee95c1439f8c47d912c88bd9ebb442e64a89f8ff) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateDialog.kt
This commit is contained in:
parent
1c090ad621
commit
bf0dee8d03
@ -54,6 +54,7 @@ import androidx.compose.runtime.setValue
|
|||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.alpha
|
import androidx.compose.ui.draw.alpha
|
||||||
|
import androidx.compose.ui.draw.blur
|
||||||
import androidx.compose.ui.draw.clipToBounds
|
import androidx.compose.ui.draw.clipToBounds
|
||||||
import androidx.compose.ui.draw.drawWithContent
|
import androidx.compose.ui.draw.drawWithContent
|
||||||
import androidx.compose.ui.graphics.Brush
|
import androidx.compose.ui.graphics.Brush
|
||||||
@ -118,6 +119,7 @@ fun MangaInfoBox(
|
|||||||
brush = Brush.verticalGradient(colors = backdropGradientColors),
|
brush = Brush.verticalGradient(colors = backdropGradientColors),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
.blur(4.dp)
|
||||||
.alpha(.2f),
|
.alpha(.2f),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ class GlobalExceptionHandler private constructor(
|
|||||||
return try {
|
return try {
|
||||||
Json.decodeFromString(ThrowableSerializer, intent.getStringExtra(INTENT_EXTRA)!!)
|
Json.decodeFromString(ThrowableSerializer, intent.getStringExtra(INTENT_EXTRA)!!)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
logcat(LogPriority.ERROR, e) { "Wasn't able to retrive throwable from intent" }
|
logcat(LogPriority.ERROR, e) { "Wasn't able to retrieve throwable from intent" }
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,6 @@ class BackupRestorer(
|
|||||||
return File("")
|
return File("")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("BlockingMethodInNonBlockingContext")
|
|
||||||
private suspend fun performRestore(uri: Uri): Boolean {
|
private suspend fun performRestore(uri: Uri): Boolean {
|
||||||
val backup = BackupUtil.decodeBackup(context, uri)
|
val backup = BackupUtil.decodeBackup(context, uri)
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ class ImageSaver(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
data().use { input ->
|
data().use { input ->
|
||||||
@Suppress("BlockingMethodInNonBlockingContext")
|
|
||||||
context.contentResolver.openOutputStream(picture, "w").use { output ->
|
context.contentResolver.openOutputStream(picture, "w").use { output ->
|
||||||
input.copyTo(output!!)
|
input.copyTo(output!!)
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ class ShizukuInstaller(private val service: Service) : Installer(service) {
|
|||||||
|
|
||||||
override var ready = false
|
override var ready = false
|
||||||
|
|
||||||
@Suppress("BlockingMethodInNonBlockingContext")
|
|
||||||
override fun processEntry(entry: Entry) {
|
override fun processEntry(entry: Entry) {
|
||||||
super.processEntry(entry)
|
super.processEntry(entry)
|
||||||
scope.launch {
|
scope.launch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user