修复送礼主播会闪退问题(心愿单id冲突)

This commit is contained in:
zlzw 2022-11-01 11:26:49 +08:00
parent 574d93d608
commit 9e411ecd71
2 changed files with 2 additions and 2 deletions

View File

@ -1405,7 +1405,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
wishListLayout.setVisibility(View.GONE);
}
((Activity) mContext).runOnUiThread(() -> {
wishListFlipper = (ViewFlipper) findViewById(R.id.wish_list);
wishListFlipper = (ViewFlipper) findViewById(R.id.wish_list_vf);
for (int i = 0; i < wishlist.size(); i++) {
View wish = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
wish.setTag(wishlist.get(i).getId());

View File

@ -372,7 +372,7 @@
android:src="@mipmap/live_icon_wishlist" />
<ViewFlipper
android:id="@+id/wish_list"
android:id="@+id/wish_list_vf"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginStart="6dp"