From 4adeff73b48ef816717dbf2d7952140d103a33c1 Mon Sep 17 00:00:00 2001 From: Yedidya Kennard Date: Tue, 16 Aug 2016 10:16:13 +0300 Subject: [PATCH] No action on tapping unsupported image --- .../java/com/wix/RNCameraKit/gallery/GalleryAdapter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryAdapter.java b/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryAdapter.java index ce7680b..50dffd4 100644 --- a/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryAdapter.java +++ b/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryAdapter.java @@ -195,14 +195,18 @@ public class GalleryAdapter extends RecyclerView.Adapter 0; - boolean supported = isSupported(holder.image); + final boolean supported = isSupported(holder.image); selectableImageView.setUnsupportedUIParams(overlayColor, unsupportedFinalImage, unsupportedText, unsupportedTextColor); selectableImageView.setDrawables(selectedDrawable, unselectedDrawable); selectableImageView.bind(executor, selected, holder.image.id, supported); selectableImageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - view.onTapImage(holder.image.uri); + if(supported) { + view.onTapImage(holder.image.uri); + } else { + // + } } }); }