Use circle mask for thumb in new updates notification

pull/123/head
Zakhar Timoshenko 4 years ago
parent 6a40a388b3
commit 8ff4eb2602

@ -13,6 +13,7 @@ import androidx.lifecycle.map
import androidx.work.* import androidx.work.*
import coil.ImageLoader import coil.ImageLoader
import coil.request.ImageRequest import coil.request.ImageRequest
import coil.transform.CircleCropTransformation
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.koin.core.component.KoinComponent import org.koin.core.component.KoinComponent
@ -159,6 +160,7 @@ class TrackWorker(context: Context, workerParams: WorkerParameters) :
coil.execute( coil.execute(
ImageRequest.Builder(applicationContext) ImageRequest.Builder(applicationContext)
.data(manga.coverUrl) .data(manga.coverUrl)
.transformations(CircleCropTransformation())
.build() .build()
).toBitmapOrNull() ).toBitmapOrNull()
) )

Loading…
Cancel
Save