diff --git a/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java b/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java index 84f2bd84..3bd78fe1 100644 --- a/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java +++ b/android/PhysicalWeb/app/src/main/java/org/physical_web/physicalweb/NearbyBeaconsFragment.java @@ -497,9 +497,14 @@ public View getView(int i, View view, ViewGroup viewGroup) { } else { setText(view, R.id.url, pwsResult.getSiteUrl()); } + if (Utils.isResolvableDevice(pwPair.getUrlDevice())) { + ((ImageView) view.findViewById(R.id.icon)).setImageBitmap( + Utils.getBitmapIcon(mPwCollection, pwsResult)); + } else { + ((ImageView) view.findViewById(R.id.icon)) + .setImageResource(R.drawable.unresolved_result_icon); + } setText(view, R.id.description, pwsResult.getDescription()); - ((ImageView) view.findViewById(R.id.icon)).setImageBitmap( - Utils.getBitmapIcon(mPwCollection, pwsResult)); final String siteUrl = pwsResult.getSiteUrl(); if (Utils.isFavorite(siteUrl)) { diff --git a/android/PhysicalWeb/app/src/main/res/drawable-hdpi/trusted_unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-hdpi/trusted_unresolved_result_icon.png new file mode 100644 index 00000000..3aa53497 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-hdpi/trusted_unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-hdpi/unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-hdpi/unresolved_result_icon.png new file mode 100644 index 00000000..cd802be6 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-hdpi/unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-mdpi/trusted_unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-mdpi/trusted_unresolved_result_icon.png new file mode 100644 index 00000000..60678e17 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-mdpi/trusted_unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-mdpi/unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-mdpi/unresolved_result_icon.png new file mode 100644 index 00000000..92ce9bdc Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-mdpi/unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/trusted_unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/trusted_unresolved_result_icon.png new file mode 100644 index 00000000..11f8c320 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/trusted_unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/unresolved_result_icon.png new file mode 100644 index 00000000..b9a03543 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xhdpi/unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/trusted_unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/trusted_unresolved_result_icon.png new file mode 100644 index 00000000..6c23d7c8 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/trusted_unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/unresolved_result_icon.png new file mode 100644 index 00000000..b259de57 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xxhdpi/unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/trusted_unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/trusted_unresolved_result_icon.png new file mode 100644 index 00000000..d11f3d74 Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/trusted_unresolved_result_icon.png differ diff --git a/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/unresolved_result_icon.png b/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/unresolved_result_icon.png new file mode 100644 index 00000000..1c27dfdf Binary files /dev/null and b/android/PhysicalWeb/app/src/main/res/drawable-xxxhdpi/unresolved_result_icon.png differ