拒绝随机PK提示英化
This commit is contained in:
parent
b2e2ca7303
commit
2351618e5a
@ -230,8 +230,8 @@ public class RandomPkDialogFragment extends AbsDialogFragment implements View.On
|
||||
String title="您因拒絕隨機PK,被限制關閉中";
|
||||
String content="隨機PK可打開時間:";
|
||||
if(!WordUtil.isNewZh()){
|
||||
title="You are restricted for refusing random PK";
|
||||
content="Random PK can open time:";
|
||||
title="Can't start a PK for now due to the earlier rejection of other pk";
|
||||
content="Available again at:";
|
||||
}
|
||||
DialogUitl.showSimpleDialog(mContext,title , content + data.getMsg(), false, new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
|
@ -1552,9 +1552,15 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
|
||||
void showClose(Dialog dialog, View title, View context, View confirmBtn, View cancelBtn) {
|
||||
task.cancel();
|
||||
((TextView) title).setText("您因拒絕隨機PK,被限制關閉中");
|
||||
((TextView) confirmBtn).setText("确定");
|
||||
((TextView) context).setText("隨機PK可打開時間:" + new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).format(new Date(System.currentTimeMillis() + 7200000)));//7200000ms=120m=2h
|
||||
String title1="您因拒絕隨機PK,被限制關閉中";
|
||||
String content="隨機PK可打開時間:";
|
||||
if(!WordUtil.isNewZh()){
|
||||
title1="Can't start a PK for now due to the earlier rejection of other pk";
|
||||
content="Available again at:";
|
||||
}
|
||||
((TextView) title).setText(title1);
|
||||
((TextView) confirmBtn).setText(WordUtil.isNewZh()?"确定":"Sure");
|
||||
((TextView) context).setText(content + new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).format(new Date(System.currentTimeMillis() + 7200000)));//7200000ms=120m=2h
|
||||
((TextView) context).setTextSize(12);
|
||||
((TextView) context).setTextColor(Color.parseColor("#999999"));
|
||||
refusePk(u);
|
||||
|
@ -1145,9 +1145,16 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
|
||||
void showClose(Dialog dialog, View title, View context, View confirmBtn, View cancelBtn) {
|
||||
task.cancel();
|
||||
((TextView) title).setText("您因拒絕隨機PK,被限制關閉中");
|
||||
((TextView) confirmBtn).setText("确定");
|
||||
((TextView) context).setText("隨機PK可打開時間:" + new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).format(new Date(System.currentTimeMillis() + 7200000)));//7200000ms=120m=2h
|
||||
|
||||
String title1="您因拒絕隨機PK,被限制關閉中";
|
||||
String content="隨機PK可打開時間:";
|
||||
if(!WordUtil.isNewZh()){
|
||||
title1="Can't start a PK for now due to the earlier rejection of other pk";
|
||||
content="Available again at:";
|
||||
}
|
||||
((TextView) title).setText(title1);
|
||||
((TextView) confirmBtn).setText(WordUtil.isNewZh()?"確定":"Determine");
|
||||
((TextView) context).setText(content + new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).format(new Date(System.currentTimeMillis() + 7200000)));//7200000ms=120m=2h
|
||||
((TextView) context).setTextSize(12);
|
||||
((TextView) context).setTextColor(Color.parseColor("#999999"));
|
||||
refusePk(u);
|
||||
|
Loading…
Reference in New Issue
Block a user