This commit is contained in:
leafwai
2021-09-17 16:28:24 +08:00
parent c7db544684
commit 4aacc425a9
69 changed files with 592 additions and 475 deletions

View File

@ -278,10 +278,10 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
JSONObject object = new JSONObject(showDialog.getPath());
JSONObject device = object.getJSONObject("device");
String model = device.getString("model");
DialogUtils.showAlertDialog(this, "你的账号已在另外一台设备登录"
DialogHelper.showDialog(this, "你的账号已在另外一台设备登录"
, StringUtils.buildString("", model, "")
, "知道了", "重新登录"
, null
, () -> {}
, () -> {
if (SPUtils.getBoolean(Constants.SP_HAS_GET_PHONE_INFO) || NetworkUtils.isOpenMobileData(BaseActivity.this)) {
QuickLoginHelper.startLogin(BaseActivity.this, "你的账号已在另外一台设备登录多设备-重新登录");
@ -289,7 +289,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
startActivity(LoginActivity.getIntent(BaseActivity.this,
"你的账号已在另外一台设备登录多设备-重新登录"));
}
}
}, false, "", ""
);
mBaseHandler.postDelayed(() -> mIsExistLogoutDialog = false, 5000);
} catch (Exception e) {