拍卖房 fix bugs.
This commit is contained in:
@@ -1933,6 +1933,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
if (userId == currentUserId) {
|
||||
setRoleType(3, 888)
|
||||
switchMic(2)
|
||||
aBoolean = false
|
||||
ivWheatFeeding(com.xscm.moduleutil.R.mipmap.room_wheat_feeding_up)
|
||||
}
|
||||
}
|
||||
} else if (text.type == 2) {
|
||||
@@ -1942,6 +1944,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
} else if ("888" == pitNumber) {
|
||||
mRoomInfoResp?.room_auction = RoomAuction()
|
||||
if (userId == currentUserId) {
|
||||
aBoolean = true
|
||||
ivWheatFeeding(com.xscm.moduleutil.R.mipmap.room_wheat_feeding)
|
||||
setRoleType(0, 0)
|
||||
switchMic(2)
|
||||
}
|
||||
|
||||
@@ -78,9 +78,14 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
private List<RoomAuction.AuctionListBean> auctionList;
|
||||
private int type;
|
||||
RoomFragment parentFragment;
|
||||
private int isShowCardRelationshipFragment = -2;
|
||||
|
||||
public RoomAuctionFragment(){}
|
||||
public RoomAuctionFragment(RoomInfoResp resp){
|
||||
private CardRelationshipFragment dialogFragment = null;
|
||||
|
||||
public RoomAuctionFragment() {
|
||||
}
|
||||
|
||||
public RoomAuctionFragment(RoomInfoResp resp) {
|
||||
roomInfoResp = resp;
|
||||
}
|
||||
|
||||
@@ -408,8 +413,7 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (id == R.id.bangdan) {//出价榜单
|
||||
} else if (id == R.id.bangdan) {//出价榜单
|
||||
BidListDialogFragment.newInstance(SpUtil.getauctionId()).show(getChildFragmentManager(), "BidListDialogFragment");
|
||||
} else if (id == R.id.iv_auction1) {
|
||||
if (mBinding.ivAuction1.getUserId() != null && !mBinding.ivAuction1.getUserId().equals("")) {
|
||||
@@ -463,7 +467,7 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
} catch (Exception e) {
|
||||
viewName = "未知View ID: " + id;
|
||||
}
|
||||
LogUtils.e("wheatFeedingDF","点击了" + viewName +"========="+ClickUtils.isFastDoubleClick(view));
|
||||
LogUtils.e("wheatFeedingDF", "点击了" + viewName + "=========" + ClickUtils.isFastDoubleClick(view));
|
||||
}
|
||||
|
||||
|
||||
@@ -861,6 +865,17 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
if (isShowCardRelationshipFragment == -1) {
|
||||
isShowCardRelationshipFragment = CardRelationshipFragment.show(roomInfoResp.getRoom_info().getRoom_id(),
|
||||
SpUtil.getUserId() + "", type + "", getActivity().getSupportFragmentManager(), dialogFragment -> {
|
||||
this.dialogFragment = dialogFragment;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void event1022(RoomMessageEvent messageEvent) {
|
||||
if (messageEvent.getText().getType() == 1) {//拍卖位上麦
|
||||
if (messageEvent.getText().getPit_number().equals("888")) {
|
||||
@@ -870,14 +885,26 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
((RoomActivity) getActivity()).upYs(false);
|
||||
}
|
||||
}
|
||||
isShowCardRelationshipFragment = -2;
|
||||
|
||||
if (messageEvent.getText().getFromUserInfo().getUser_id() == SpUtil.getUserId()) {
|
||||
CardRelationshipFragment.show(roomInfoResp.getRoom_info().getRoom_id(), SpUtil.getUserId() + "", type + "", getActivity().getSupportFragmentManager());
|
||||
isShowCardRelationshipFragment = CardRelationshipFragment.show(roomInfoResp.getRoom_info().getRoom_id(),
|
||||
SpUtil.getUserId() + "", type + "", getActivity().getSupportFragmentManager(), dialogFragment -> {
|
||||
this.dialogFragment = dialogFragment;
|
||||
});
|
||||
}
|
||||
} else if (messageEvent.getText().getType() == 2) {//拍卖位下麦
|
||||
if (messageEvent.getText().getPit_number().equals("9")) {
|
||||
wheatView.setData(getPitBean2(messageEvent, "9"));
|
||||
} else if (messageEvent.getText().getPit_number().equals("888")) {
|
||||
wheatView2.setData(getPitBean2(messageEvent, "888"));
|
||||
try {
|
||||
if (dialogFragment != null){
|
||||
dialogFragment.dismiss();
|
||||
}
|
||||
}catch (Exception e){
|
||||
LogUtils.e("RoomAuctionFragment", "event1022: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
yinc();
|
||||
}
|
||||
@@ -949,7 +976,11 @@ public class RoomAuctionFragment extends BaseMvpFragment<RoomAuctionPresenterTow
|
||||
getvjs();
|
||||
// imActionYs.setVisibility(GONE);
|
||||
if (getActivity() instanceof RoomActivity) {
|
||||
((RoomActivity) getActivity()).upJs(false);
|
||||
if (getHostUser() < 4){
|
||||
((RoomActivity) getActivity()).upJs(true);
|
||||
}else {
|
||||
((RoomActivity) getActivity()).upJs(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (messageEvent.getText().getAuction_user().getUser_id().equals(SpUtil.getUserId() + "")) {
|
||||
|
||||
Reference in New Issue
Block a user