diff --git a/app/src/main/res/drawable-nodpi/ic_na_launcher.png b/app/src/main/res/drawable-nodpi/ic_na_launcher.png new file mode 100644 index 000000000..644e6f856 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/ic_na_launcher.png differ diff --git a/app/src/main/res/values/blueprint_configs.xml b/app/src/main/res/values/blueprint_configs.xml index 59c50ddb2..6cd2c3216 100644 --- a/app/src/main/res/values/blueprint_configs.xml +++ b/app/src/main/res/values/blueprint_configs.xml @@ -64,6 +64,12 @@ --> false + + + true + + + + + + false + coffee pizza burger - \ No newline at end of file + diff --git a/library/src/main/kotlin/jahirfiquitiva/libs/blueprint/ui/adapters/viewholders/IconViewHolder.kt b/library/src/main/kotlin/jahirfiquitiva/libs/blueprint/ui/adapters/viewholders/IconViewHolder.kt index 8811ebddb..8a2352687 100644 --- a/library/src/main/kotlin/jahirfiquitiva/libs/blueprint/ui/adapters/viewholders/IconViewHolder.kt +++ b/library/src/main/kotlin/jahirfiquitiva/libs/blueprint/ui/adapters/viewholders/IconViewHolder.kt @@ -31,6 +31,8 @@ import jahirfiquitiva.libs.blueprint.models.Icon import jahirfiquitiva.libs.frames.helpers.glide.FramesGlideListener import jahirfiquitiva.libs.kext.extensions.bind import jahirfiquitiva.libs.kext.extensions.clearChildrenAnimations +import jahirfiquitiva.libs.kext.extensions.drawable +import jahirfiquitiva.libs.kext.extensions.string class IconViewHolder(itemView: View) : RecyclerView.ViewHolder( itemView) { @@ -51,7 +53,11 @@ class IconViewHolder(itemView: View) : RecyclerView.ViewHolder( if (!animate) options.dontAnimate() man.load(item.icon) - .apply(options) + .apply( + options + .placeholder( + context.drawable(context.string(R.string.icons_placeholder))) + .error(context.drawable(context.string(R.string.icons_placeholder)))) .listener(object : FramesGlideListener() { override fun onLoadSucceed( resource: Drawable, @@ -103,4 +109,4 @@ class IconViewHolder(itemView: View) : RecyclerView.ViewHolder( fun unbind() { icon?.setImageDrawable(null) } -} \ No newline at end of file +} diff --git a/library/src/main/res/values/blueprint_configs.xml b/library/src/main/res/values/blueprint_configs.xml index dab317ca5..d2d511590 100644 --- a/library/src/main/res/values/blueprint_configs.xml +++ b/library/src/main/res/values/blueprint_configs.xml @@ -65,6 +65,12 @@ --> false + + + - \ No newline at end of file +