1:修改礼物飘屏判断送的人和接收的人
2:修改所有盘在次点击的时候,初始化选中状态 3:修改礼物飘屏的文字大小 4:修改首页去围观展示的文字
This commit is contained in:
@@ -41,7 +41,8 @@ public class GiftBean {
|
|||||||
public boolean isSameGiftFromSameSender(GiftBean other) {
|
public boolean isSameGiftFromSameSender(GiftBean other) {
|
||||||
if (other == null) return false;
|
if (other == null) return false;
|
||||||
return Objects.equals(gift_id, other.gift_id) &&
|
return Objects.equals(gift_id, other.gift_id) &&
|
||||||
Objects.equals(senderName, other.senderName);
|
Objects.equals(senderName, other.senderName) &&
|
||||||
|
Objects.equals(nickname,other.nickname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成礼物唯一键
|
// 生成礼物唯一键
|
||||||
|
|||||||
@@ -2960,41 +2960,49 @@ public class RetrofitClient {
|
|||||||
|
|
||||||
public void roomAuctionJoin(String auctionId, String userId, String giftId, String
|
public void roomAuctionJoin(String auctionId, String userId, String giftId, String
|
||||||
num, String type, BaseObserver<RoomAuction.AuctionListBean> observer) {
|
num, String type, BaseObserver<RoomAuction.AuctionListBean> observer) {
|
||||||
sApiServer.roomAuctionJoin(auctionId, userId, giftId, num, type).enqueue(new ApiResponseCallback<RoomAuction.AuctionListBean>(CommonAppContext.getInstance()) {
|
sApiServer.roomAuctionJoin(auctionId, userId, giftId, num, type)
|
||||||
@Override
|
// .enqueue(new ApiResponseCallback<RoomAuction.AuctionListBean>(CommonAppContext.getInstance()) {
|
||||||
public void onSuccess(RoomAuction.AuctionListBean data) {
|
|
||||||
if (data != null) {
|
|
||||||
observer.onNext(data);
|
|
||||||
} else {
|
|
||||||
observer.onNext(new RoomAuction.AuctionListBean());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onFailure(Throwable t) {
|
|
||||||
t.printStackTrace();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// .enqueue(new Callback<BaseModel<RoomAuction.AuctionListBean>>() {
|
|
||||||
//
|
|
||||||
// @Override
|
// @Override
|
||||||
// public void onResponse(Call<BaseModel<RoomAuction.AuctionListBean>> call, Response<BaseModel<RoomAuction.AuctionListBean>> response) {
|
// public void onSuccess(RoomAuction.AuctionListBean data) {
|
||||||
// if (response.code() == 200) {
|
// if (data != null) {
|
||||||
// BaseModel<RoomAuction.AuctionListBean> baseModel = response.body();
|
// observer.onNext(data);
|
||||||
//
|
// } else {
|
||||||
// if (baseModel.getCode() == 1) {
|
// observer.onNext(new RoomAuction.AuctionListBean());
|
||||||
// observer.onNext( null);
|
|
||||||
// } else {
|
|
||||||
// ToastUtils.showShort(baseModel.getMsg());
|
|
||||||
// }
|
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @Override
|
// @Override
|
||||||
// public void onFailure(Call<BaseModel<RoomAuction.AuctionListBean>> call, Throwable t) {
|
// public void onFailure(Throwable t) {
|
||||||
// t.printStackTrace();
|
// t.printStackTrace();
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
.enqueue(new Callback<BaseModel<RoomAuction.AuctionListBean>>() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResponse(Call<BaseModel<RoomAuction.AuctionListBean>> call, Response<BaseModel<RoomAuction.AuctionListBean>> response) {
|
||||||
|
if (response.code() == 200) {
|
||||||
|
BaseModel<RoomAuction.AuctionListBean> baseModel = response.body();
|
||||||
|
|
||||||
|
if (baseModel.getCode() == 1) {
|
||||||
|
observer.onNext( new RoomAuction.AuctionListBean());
|
||||||
|
}else if (baseModel.getCode() == 0) {
|
||||||
|
ToastUtils.showShort(baseModel.getMsg());
|
||||||
|
}else if (baseModel.getCode() == 301) {
|
||||||
|
try {
|
||||||
|
ToastUtils.showShort(baseModel.getMsg());
|
||||||
|
CommonAppContext.getInstance().clearLoginInfo();
|
||||||
|
} catch (ClassNotFoundException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFailure(Call<BaseModel<RoomAuction.AuctionListBean>> call, Throwable t) {
|
||||||
|
t.printStackTrace();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void auctionDelay(String auctionId, BaseObserver<String> observer) {
|
public void auctionDelay(String auctionId, BaseObserver<String> observer) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:text="礼品"
|
android:text="礼品"
|
||||||
android:textColor="#FFDE77"
|
android:textColor="#FFDE77"
|
||||||
android:textSize="14sp"
|
android:textSize="12sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
android:layout_marginEnd="@dimen/dp_8"
|
android:layout_marginEnd="@dimen/dp_8"
|
||||||
android:text="...."
|
android:text="...."
|
||||||
android:textColor="#FFDE77"
|
android:textColor="#FFDE77"
|
||||||
android:textSize="14sp"
|
android:textSize="12sp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -1513,7 +1513,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
} else if (msgType == EMMessageInfo.QXRoomMessageTypeSignTipText) {
|
} else if (msgType == EMMessageInfo.QXRoomMessageTypeSignTipText) {
|
||||||
roomFragment?.handleRoomMessage(messageEvent)
|
roomFragment?.handleRoomMessage(messageEvent)
|
||||||
}else if (msgType == EMMessageInfo.QXRoomMessageTypeSignChat) {//暴币展示
|
}else if (msgType == EMMessageInfo.QXRoomMessageTypeSignChat) {//暴币展示
|
||||||
QXGiftPlayerManager.getInstance(this).displayFullEffectView(messageEvent.text.play_image)
|
QXGiftPlayerManager.getInstance(this).displayChatEffectView(messageEvent.text.play_image)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import static android.view.View.GONE;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@@ -233,7 +234,11 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
|
|||||||
mqttList.addAll(cachedMqttBeans.get(i).getList());
|
mqttList.addAll(cachedMqttBeans.get(i).getList());
|
||||||
}
|
}
|
||||||
for (int i = 0; i < mqttList.size(); i++) {
|
for (int i = 0; i < mqttList.size(); i++) {
|
||||||
info.add(mqttList.get(i).getFromUserName() + "送给" + mqttList.get(i).getToUserName() + "\n" + mqttList.get(i).getGiftName());
|
if (TextUtils.isEmpty(mqttList.get(i).getToUserName())) {
|
||||||
|
info.add(mqttList.get(i).getText());
|
||||||
|
} else {
|
||||||
|
info.add(mqttList.get(i).getFromUserName() + "送给" + mqttList.get(i).getToUserName() + "\n" + mqttList.get(i).getGiftName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -372,6 +372,14 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
circularProgress.setProgress(0);
|
circularProgress.setProgress(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setSelected(){
|
||||||
|
for (GiftCardView gridView : allViewsArray) {
|
||||||
|
gridView.setSelected(false);
|
||||||
|
gridView.stopPulseAnimationWithLayer();
|
||||||
|
gridView.setVisibilitymResultTextView(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void onClisk(View view) {
|
private void onClisk(View view) {
|
||||||
int id = view.getId();
|
int id = view.getId();
|
||||||
|
|
||||||
@@ -381,6 +389,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
isDrawing = true;
|
isDrawing = true;
|
||||||
// init(1);
|
// init(1);
|
||||||
startType = 1;
|
startType = 1;
|
||||||
|
setSelected();
|
||||||
MvpPre.drawGiftList(giftBagId, userIds, roomId, "1", heart_id,auction_id);
|
MvpPre.drawGiftList(giftBagId, userIds, roomId, "1", heart_id,auction_id);
|
||||||
} else {
|
} else {
|
||||||
// com.hjq.toast.ToastUtils.show("正在抽奖中...");
|
// com.hjq.toast.ToastUtils.show("正在抽奖中...");
|
||||||
@@ -391,6 +400,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
isDrawing = true;
|
isDrawing = true;
|
||||||
// init(2);
|
// init(2);
|
||||||
startType = 2;
|
startType = 2;
|
||||||
|
setSelected();
|
||||||
MvpPre.drawGiftList(giftBagId, userIds, roomId, "6", heart_id,auction_id);
|
MvpPre.drawGiftList(giftBagId, userIds, roomId, "6", heart_id,auction_id);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -401,6 +411,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
|
|||||||
isDrawing = true;
|
isDrawing = true;
|
||||||
// init(3);
|
// init(3);
|
||||||
startType = 3;
|
startType = 3;
|
||||||
|
setSelected();
|
||||||
MvpPre.drawGiftList(giftBagId, userIds, roomId, "9", heart_id,auction_id);
|
MvpPre.drawGiftList(giftBagId, userIds, roomId, "9", heart_id,auction_id);
|
||||||
} else {
|
} else {
|
||||||
// com.hjq.toast.ToastUtils.show("正在抽奖中...");
|
// com.hjq.toast.ToastUtils.show("正在抽奖中...");
|
||||||
|
|||||||
Reference in New Issue
Block a user