update
This commit is contained in:
@@ -26,6 +26,7 @@ import com.shayu.onetoone.utils.ConversationUtils;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -81,9 +82,9 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
imageViewList.add(user5);
|
||||
back.setOnClickListener(v -> {
|
||||
new TipsDialog(mContext)
|
||||
.setTitle("確定要退出靈魂速配嗎?")
|
||||
.setApplyText("繼續匹配")
|
||||
.setCancelText("徹底離開")
|
||||
.setTitle(WordUtil.getNewString(R.string.matching_quit_title))
|
||||
.setApplyText(WordUtil.getNewString(R.string.matching_quit_cancel))
|
||||
.setCancelText(WordUtil.getNewString(R.string.matching_quit_apply))
|
||||
.setOnDialogClickListener(new OnDialogClickListener() {
|
||||
@Override
|
||||
public void onCancel(Dialog dialog) {
|
||||
@@ -101,7 +102,6 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
if (data != null) {
|
||||
SendConsumeBean bean = JSONObject.parseObject(data, SendConsumeBean.class);
|
||||
if (bean != null) {
|
||||
ToastUtil.show("有结果直接进");
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||
ConversationUtils.startConversation(mContext, bean.getMateUser().getUser().getId() + "", bundle);
|
||||
MatchingActivity.this.finish();
|
||||
@@ -133,7 +133,7 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
}
|
||||
|
||||
private void call() {
|
||||
handler.post(() -> ToastUtil.show("匹配"));
|
||||
handler.post(() -> ToastUtil.showDebug("匹配"));
|
||||
SendMessageManager.matching(new OnSendMessageListener() {
|
||||
@Override
|
||||
public void onSuccess(String token, SendConsumeBean bean) {
|
||||
@@ -152,10 +152,10 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
public void onError(int status, String msg, SendConsumeBean bean) {
|
||||
super.onError(status, msg, bean);
|
||||
if (bean.getCode() == 503) {
|
||||
handler.post(() -> ToastUtil.show("没人,继续"));
|
||||
handler.post(() -> ToastUtil.showDebug("没人,继续"));
|
||||
}else if(status==OnSendMessageListener.STATUS_NOT_PRICE){
|
||||
task.cancel();
|
||||
handler.post(() -> ToastUtil.show("价格不足"));
|
||||
handler.post(() -> ToastUtil.showDebug("价格不足"));
|
||||
MatchingActivity.this.finish();
|
||||
}
|
||||
}
|
||||
@@ -173,9 +173,9 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
} else {
|
||||
handler.post(() -> {
|
||||
new TipsDialog(mContext)
|
||||
.setTitle("当前等待时间较长,建议您 先去观看动态哦,稍后再来哦~")
|
||||
.setApplyText("去看动态")
|
||||
.setCancelText("繼續匹配")
|
||||
.setTitle(WordUtil.getNewString(R.string.matching_wait_title))
|
||||
.setApplyText(WordUtil.getNewString(R.string.matching_wait_apply))
|
||||
.setCancelText(WordUtil.getNewString(R.string.matching_wait_cancel))
|
||||
.setOnDialogClickListener(new OnDialogClickListener() {
|
||||
@Override
|
||||
public void onCancel(Dialog dialog) {
|
||||
@@ -199,7 +199,7 @@ public class MatchingActivity extends AbsOTOActivity {
|
||||
|
||||
@Override
|
||||
public boolean cancel() {
|
||||
handler.post(() -> ToastUtil.show("取消"));
|
||||
handler.post(() -> ToastUtil.showDebug("取消"));
|
||||
return super.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user