mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-01 00:18:30 +02:00
Image seems to better support Bitmap models than Async Image
This commit is contained in:
parent
80bede648f
commit
a618e84d32
@ -1,6 +1,7 @@
|
||||
package com.vitorpamplona.amethyst.ui.note
|
||||
|
||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.clickable
|
||||
@ -408,8 +409,8 @@ fun NoteAuthorPicture(
|
||||
.width(size)
|
||||
.height(size)) {
|
||||
if (author == null) {
|
||||
AsyncImage(
|
||||
model = rememberAsyncImagePainter(RoboHashCache.get(ctx, "ohno")),
|
||||
Image(
|
||||
painter = rememberAsyncImagePainter(RoboHashCache.get(ctx, "ohnothisauthorisnotfound")),
|
||||
contentDescription = "Unknown Author",
|
||||
modifier = pictureModifier
|
||||
.fillMaxSize(1f)
|
||||
|
Loading…
x
Reference in New Issue
Block a user