mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 03:42:15 +00:00
Add: Apps' place holder icon on errors
This commit is contained in:
parent
b2f3c853fa
commit
b56da3679c
@ -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(
|
||||
|
@ -2,6 +2,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="96dp"
|
||||
android:height="96dp"
|
||||
android:tint="?colorPrimary"
|
||||
android:viewportWidth="96"
|
||||
android:viewportHeight="96">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user