修改测试问题
This commit is contained in:
parent
b7842d5ac9
commit
076f7130c8
@ -119,6 +119,7 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
roomName = findViewById(R.id.room_name);
|
||||
gameSill = findViewById(R.id.game_sill);
|
||||
roomGameArrow = findViewById(R.id.room_game_arrow);
|
||||
gameSill.setHint(WordUtil.isNewZh() ? "請輸入貨幣數量" : "Please enter the amount of currency");
|
||||
ViewClicksAntiShake.clicksAntiShake(createGameType, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
@ -199,17 +200,18 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
|
||||
if (TextUtils.isEmpty(sill)) {
|
||||
if (TextUtils.equals(currencyType, "3")) {
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("数量区间为10~1000");
|
||||
} else {
|
||||
ToastUtil.show("The quantity range is 10 to 1000");
|
||||
}
|
||||
} else {
|
||||
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("数量区间为100--5W");
|
||||
} else {
|
||||
ToastUtil.show("The quantity range is 100 to 5 W");
|
||||
}
|
||||
} else {
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("数量区间为10~1000");
|
||||
} else {
|
||||
ToastUtil.show("The quantity range is 10 to 1000");
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
@ -357,9 +359,9 @@ public class CreateSudGamePopup extends BottomPopupView {
|
||||
currencyType = event.getCurrencyType();
|
||||
selectCurrencyType.setText(currencyTypeName);
|
||||
if (TextUtils.equals(currencyType, "3")) {
|
||||
gameSill.setHint(getContext().getString(R.string.interactive_game_create_gold_bean_quantity));
|
||||
gameSill.setHint(WordUtil.isNewZh() ? "請輸入貨幣數量" : "Please enter the amount of currency");
|
||||
} else {
|
||||
gameSill.setHint(WordUtil.isNewZh() ? "請選擇星幣數量" : "Please enter the number of Coins");
|
||||
gameSill.setHint(WordUtil.isNewZh() ? "請輸入貨幣數量" : "Please enter the amount of currency");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ import com.yunbao.common.bean.MicUserBean;
|
||||
import com.yunbao.common.bean.UserBean;
|
||||
import com.yunbao.common.dialog.NotCancelableDialog;
|
||||
import com.yunbao.common.event.GiftWallIlluminateEvent;
|
||||
import com.yunbao.common.event.LiveSudGamePopupShowOrHideEvent;
|
||||
import com.yunbao.common.event.LoginInvalidEvent;
|
||||
import com.yunbao.common.event.SendBlindGiftEvent;
|
||||
import com.yunbao.common.event.ShowHideEvent;
|
||||
@ -78,6 +79,7 @@ import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.LiveNewWishListPopup;
|
||||
import com.yunbao.common.views.LiveRobotSettingCustomPopup;
|
||||
import com.yunbao.common.views.LiveSudGamePopup;
|
||||
import com.yunbao.faceunity.FaceManager;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.bean.LiveChatBean;
|
||||
@ -1857,4 +1859,44 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
});
|
||||
robotHandler.postDelayed(robotRunnable, robotTime);
|
||||
}
|
||||
|
||||
private LiveSudGamePopup liveSudGamePopupXPopup = null;
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onLiveSudGamePopupShowOrHideEvent(LiveSudGamePopupShowOrHideEvent event) {
|
||||
switch (event.getType()) {
|
||||
case 0:
|
||||
if (liveSudGamePopupXPopup == null) {
|
||||
liveSudGamePopupXPopup = new LiveSudGamePopup(mContext, event.getCreateSudRoomModel());
|
||||
new XPopup.Builder(mContext)
|
||||
.enableDrag(false)
|
||||
.dismissOnTouchOutside(false)
|
||||
.dismissOnBackPressed(false)
|
||||
.asCustom(liveSudGamePopupXPopup).show();
|
||||
} else {
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.dialog.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.dialog.hide();
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.BusGetOff();
|
||||
liveSudGamePopupXPopup.dialog.dismiss();
|
||||
liveSudGamePopupXPopup = null;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -410,7 +410,7 @@ public class SocketRyClient {
|
||||
= new AllServerNotifyEvent()
|
||||
.setBlindBoxId(map.getString("blind_box_id"))
|
||||
.setBoxType(boxType)
|
||||
.setBoxTypeName(map.getString(boxTypeName))
|
||||
.setBoxTypeName(boxTypeName)
|
||||
.setDressName(WordUtil.isNewZh() ? map.getString("dress_name") : TextUtils.isEmpty(map.getString("dress_nameen")) ? map.getString("dress_name") : map.getString("dress_nameen"))
|
||||
.setGiftNotification(map.getString("gift_notification"))
|
||||
.setGiftName(WordUtil.isNewZh() ? mCt.getString("giftname") : mCt.getString("giftnameen"))
|
||||
@ -767,9 +767,23 @@ public class SocketRyClient {
|
||||
}
|
||||
|
||||
private void buyGuardInSameRoom(JSONObject map) {
|
||||
String guardName = WordUtil.isNewZh() ? "周守護" : "Week Guardian";
|
||||
switch (map.getIntValue("guard_type")) {
|
||||
case 1:
|
||||
guardName = WordUtil.isNewZh() ? "周守護" : "Week Guardian";
|
||||
break;
|
||||
case 2:
|
||||
guardName = WordUtil.isNewZh() ? "月守護" : "Month Guardian";
|
||||
break;
|
||||
case 3:
|
||||
guardName = WordUtil.isNewZh() ? "年守護" : "Year Guardian";
|
||||
break;
|
||||
}
|
||||
String content = WordUtil.isNewZh() ? "%s在%s的直播間開通了%s" : "%s has been opened in %s live broadcast room %s";
|
||||
content = String.format(content, map.getString("uname"), map.getString("ancherName"), guardName);
|
||||
LiveBuyGuardMsgBean buyGuardMsgBean = new LiveBuyGuardMsgBean();
|
||||
buyGuardMsgBean.setUid(map.getString("uid"));
|
||||
buyGuardMsgBean.setUserName(map.getString("ct"));
|
||||
buyGuardMsgBean.setUserName(content);
|
||||
buyGuardMsgBean.setVotes(map.getString("votestotal"));
|
||||
buyGuardMsgBean.setGuardNum(map.getIntValue("guard_nums"));
|
||||
buyGuardMsgBean.setGuardType(map.getIntValue("guard_type"));
|
||||
|
@ -932,7 +932,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
* 申请连麦但是主播还未同意的状态
|
||||
*/
|
||||
public void micIngTypeOne(LiveBean bean, int liveType, int liveTypeVal) {
|
||||
DialogUitl.showSimpleDialog(mContext, null, "您已申請,退出將取消語音連麥申請!", false, new DialogUitl.SimpleCallback3() {
|
||||
DialogUitl.showSimpleDialog(mContext, null, WordUtil.isNewZh()?"您已申請,退出將取消語音連麥申請!":"You have applied, logout will cancel the voice connection application!", false, new DialogUitl.SimpleCallback3() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog) {
|
||||
MicStatusManager.getInstance().clear();
|
||||
@ -1381,7 +1381,13 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
|
||||
@Override
|
||||
public void onBuyGuard(LiveBuyGuardMsgBean bean) {
|
||||
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.onGuardInfoChanged(bean);
|
||||
LiveChatBean chatBean = new LiveChatBean();
|
||||
chatBean.setContent(bean.getUserName());
|
||||
chatBean.setType(LiveChatBean.SYSTEM);
|
||||
mLiveRoomViewHolder.insertChat(chatBean, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -73,6 +73,7 @@ import com.yunbao.main.http.MainHttpUtil;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
@ -249,10 +250,12 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
} else {
|
||||
coin.setText(coins);
|
||||
}
|
||||
if (yuanbaos.length() > 8) {
|
||||
star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 6) + "M");
|
||||
} else if (yuanbaos.length() > 6) {
|
||||
star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 3) + "K");
|
||||
BigDecimal yuanbao = new BigDecimal(yuanbaos);
|
||||
String yuanbaoStr =String.valueOf(yuanbao.intValue());
|
||||
if (yuanbaoStr.length() > 9) {
|
||||
star_coin.setText(yuanbaoStr.substring(0,yuanbaoStr.length() - 6) + "M");
|
||||
} else if (yuanbaoStr.length()>7) {
|
||||
star_coin.setText(yuanbaoStr.substring(0, yuanbaoStr.length() - 3) + "K");
|
||||
} else {
|
||||
star_coin.setText(yuanbaos);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@mipmap/bg_main_home_sub_game"
|
||||
android:orientation="vertical">
|
||||
|
||||
@ -193,6 +194,7 @@
|
||||
android:id="@+id/refreshView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
Loading…
Reference in New Issue
Block a user