Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cover-edit-favorite-only' into t…
Browse files Browse the repository at this point in the history
…est-build
  • Loading branch information
cuong-tran committed Jan 25, 2025
2 parents 9d70dc2 + c10b1fa commit 65bd0c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ fun ExtensionIcon(
is Extension.Installed -> {
val icon by extension.getIcon(density)
when (icon) {
Result.Loading -> Box(modifier = modifier)
is Result.Loading -> Box(modifier = modifier)
is Result.Success -> Image(
bitmap = (icon as Result.Success<ImageBitmap>).value,
contentDescription = null,
modifier = modifier,
)
Result.Error -> Image(
is Result.Error -> Image(
bitmap = ImageBitmap.imageResource(id = R.mipmap.ic_default_source),
contentDescription = null,
modifier = modifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fun MangaCoverDialog(
),
),
)
if (onEditClick != null) {
if (onEditClick != null && manga.favorite) {
Box {
var expanded by remember { mutableStateOf(false) }
IconButton(
Expand Down

0 comments on commit 65bd0c4

Please sign in to comment.