mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 11:52:13 +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,
|
item.metadataIcon,
|
||||||
repo.address,
|
repo.address,
|
||||||
repo.authentication
|
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)
|
) else painterResource(id = R.drawable.ic_application_default)
|
||||||
Image(
|
Image(
|
||||||
painter = imagePainter,
|
painter = imagePainter,
|
||||||
@ -127,7 +130,10 @@ fun ProductColumn(
|
|||||||
item.metadataIcon,
|
item.metadataIcon,
|
||||||
repo.address,
|
repo.address,
|
||||||
repo.authentication
|
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)
|
else painterResource(id = R.drawable.ic_application_default)
|
||||||
Image(
|
Image(
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="96dp"
|
android:width="96dp"
|
||||||
android:height="96dp"
|
android:height="96dp"
|
||||||
|
android:tint="?colorPrimary"
|
||||||
android:viewportWidth="96"
|
android:viewportWidth="96"
|
||||||
android:viewportHeight="96">
|
android:viewportHeight="96">
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user