Skip to content

Commit 3444f59

Browse files
committed
Disable CoilImage loading & error producing odd glitches
1 parent 5de34bb commit 3444f59

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

app/src/main/java/net/opatry/adoptacat/ui/CatDetailsScreen.kt

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,23 @@ fun CatPictureView(pictureUrl: String, compact: Boolean) {
220220
)
221221
},
222222
fadeIn = true,
223-
loading = {
224-
Box(Modifier.matchParentSize()) {
225-
CircularProgressIndicator(Modifier.align(Alignment.Center))
226-
}
227-
},
228-
error = {
229-
Image(
230-
painterResource(R.drawable.ic_android),
231-
null,
232-
Modifier
233-
.padding(picturePadding)
234-
.size(pictureSize)
235-
.fillMaxHeight(),
236-
colorFilter = ColorFilter.tint(MaterialTheme.colors.error),
237-
)
238-
}
223+
// FIXME needs fine tuning
224+
// loading = {
225+
// Box(Modifier.matchParentSize()) {
226+
// CircularProgressIndicator(Modifier.align(Alignment.Center))
227+
// }
228+
// },
229+
// error = {
230+
// Image(
231+
// painterResource(R.drawable.ic_android),
232+
// null,
233+
// Modifier
234+
// .padding(picturePadding)
235+
// .size(pictureSize)
236+
// .fillMaxHeight(),
237+
// colorFilter = ColorFilter.tint(MaterialTheme.colors.error),
238+
// )
239+
// }
239240
)
240241
}
241242

0 commit comments

Comments
 (0)