diff --git a/common/src/main/java/com/yunbao/common/views/DayWishItemViewHolder.java b/common/src/main/java/com/yunbao/common/views/DayWishItemViewHolder.java index 335b71651..677c2d632 100644 --- a/common/src/main/java/com/yunbao/common/views/DayWishItemViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/DayWishItemViewHolder.java @@ -80,10 +80,13 @@ public class DayWishItemViewHolder extends RecyclerView.ViewHolder { @Override public void onViewClicks() { int number = model.wishProgress(); - model.setWishlistNum(String.valueOf(number - 1)); - if (listener != null) { - listener.onUpdate(model, index); + if (number>1){ + model.setWishlistNum(String.valueOf(number - 1)); + if (listener != null) { + listener.onUpdate(model, index); + } } + } }); } else { diff --git a/common/src/main/java/com/yunbao/common/views/LunarWishItemViewHolder.java b/common/src/main/java/com/yunbao/common/views/LunarWishItemViewHolder.java index 756685745..01d3d65ea 100644 --- a/common/src/main/java/com/yunbao/common/views/LunarWishItemViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/LunarWishItemViewHolder.java @@ -77,10 +77,13 @@ public class LunarWishItemViewHolder extends RecyclerView.ViewHolder { @Override public void onViewClicks() { int number = model.wishProgress(); - model.setWishlistNum(String.valueOf(number - 1)); - if (listener != null) { - listener.onUpdate(model, index); + if (number>1){ + model.setWishlistNum(String.valueOf(number - 1)); + if (listener != null) { + listener.onUpdate(model, index); + } } + } }); } else { diff --git a/common/src/main/java/com/yunbao/common/views/SeasonalWishItemViewHolder.java b/common/src/main/java/com/yunbao/common/views/SeasonalWishItemViewHolder.java index b0578cc45..be93e658d 100644 --- a/common/src/main/java/com/yunbao/common/views/SeasonalWishItemViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/SeasonalWishItemViewHolder.java @@ -77,10 +77,13 @@ public class SeasonalWishItemViewHolder extends RecyclerView.ViewHolder { @Override public void onViewClicks() { int number = model.wishProgress(); - model.setWishlistNum(String.valueOf(number - 1)); - if (listener != null) { - listener.onUpdate(model, index); + if (number>1){ + model.setWishlistNum(String.valueOf(number - 1)); + if (listener != null) { + listener.onUpdate(model, index); + } } + } }); } else { diff --git a/common/src/main/java/com/yunbao/common/views/WeekWishItemViewHolder.java b/common/src/main/java/com/yunbao/common/views/WeekWishItemViewHolder.java index 422c2e304..63d1f533e 100644 --- a/common/src/main/java/com/yunbao/common/views/WeekWishItemViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/WeekWishItemViewHolder.java @@ -77,10 +77,13 @@ public class WeekWishItemViewHolder extends RecyclerView.ViewHolder { @Override public void onViewClicks() { int number = model.wishProgress(); - model.setWishlistNum(String.valueOf(number - 1)); - if (listener != null) { - listener.onUpdate(model, index); + if (number>1){ + model.setWishlistNum(String.valueOf(number - 1)); + if (listener != null) { + listener.onUpdate(model, index); + } } + } }); } else { diff --git a/common/src/main/res/layout/dialog_live_gift_popup.xml b/common/src/main/res/layout/dialog_live_gift_popup.xml index e51c57a5d..66284053c 100644 --- a/common/src/main/res/layout/dialog_live_gift_popup.xml +++ b/common/src/main/res/layout/dialog_live_gift_popup.xml @@ -92,7 +92,7 @@ @@ -157,14 +157,23 @@ android:progress="0" android:progressDrawable="@drawable/progress_bg_user" /> - +