Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Fix crash in Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed May 23, 2022
1 parent 754935b commit 58cd03a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/src/main/java/com/ivy/wallet/ui/settings/SettingsScreen.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.ivy.wallet.ui.settings

import androidx.annotation.DrawableRes
import androidx.compose.foundation.*
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.CircleShape
Expand All @@ -24,7 +27,7 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.lifecycle.viewmodel.compose.viewModel
import com.google.accompanist.coil.rememberCoilPainter
import coil.compose.AsyncImage
import com.google.accompanist.insets.navigationBarsPadding
import com.google.accompanist.insets.statusBarsPadding
import com.ivy.design.l0_system.UI
Expand Down Expand Up @@ -722,11 +725,11 @@ private fun AccountCardUser(
Spacer(Modifier.width(24.dp))

if (user.profilePicture != null) {
Image(
AsyncImage(
modifier = Modifier
.clip(CircleShape)
.size(32.dp),
painter = rememberCoilPainter(request = user.profilePicture),
model = user.profilePicture,
contentScale = ContentScale.FillBounds,
contentDescription = "profile picture"
)
Expand Down

0 comments on commit 58cd03a

Please sign in to comment.