mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 14:19:19 +00:00
Add: Apps' place holder icon on errors
This commit is contained in:
@ -51,7 +51,10 @@ fun ProductRow(
|
||||
item.metadataIcon,
|
||||
repo.address,
|
||||
repo.authentication
|
||||
), builder = { placeholder(R.drawable.ic_application_default) }
|
||||
), builder = {
|
||||
placeholder(R.drawable.ic_application_default)
|
||||
error(R.drawable.ic_application_default)
|
||||
}
|
||||
) else painterResource(id = R.drawable.ic_application_default)
|
||||
Image(
|
||||
painter = imagePainter,
|
||||
@ -127,7 +130,10 @@ fun ProductColumn(
|
||||
item.metadataIcon,
|
||||
repo.address,
|
||||
repo.authentication
|
||||
), builder = { placeholder(R.drawable.ic_application_default) }
|
||||
), builder = {
|
||||
placeholder(R.drawable.ic_application_default)
|
||||
error(R.drawable.ic_application_default)
|
||||
}
|
||||
)
|
||||
else painterResource(id = R.drawable.ic_application_default)
|
||||
Image(
|
||||
|
Reference in New Issue
Block a user