update 随机PK 补充拒绝PK后的对话框

This commit is contained in:
2022-12-10 14:58:50 +08:00
parent e28c393f88
commit 3a75e24601
3 changed files with 11 additions and 5 deletions

View File

@@ -87,7 +87,6 @@ public class RandomPkManager {
@Override
public void run() {
status = PK_STATUS_REQUEST;
sec++;
if (sec % 60 == 0) {
min++;
@@ -114,9 +113,10 @@ public class RandomPkManager {
* 对方拒绝,开始下一轮匹配
*/
private void nextPk() {
if (status != PK_STATUS_REQUEST && status != PK_STATUS_REFUSE) {
if (status != PK_STATUS_DEFAULT && status != PK_STATUS_REFUSE) {
return;
}
status = PK_STATUS_REQUEST;
LiveNetManager.get(CommonAppContext.getTopActivity())
.randomPK(new HttpCallback<String>() {
@Override