修改部分弹窗为居中样式

This commit is contained in:
leafwai
2021-09-28 18:51:10 +08:00
parent c541805bed
commit fcc23ddfc2
20 changed files with 63 additions and 48 deletions

View File

@ -278,7 +278,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
JSONObject object = new JSONObject(showDialog.getPath());
JSONObject device = object.getJSONObject("device");
String model = device.getString("model");
DialogHelper.showDialog(this, "你的账号已在另外一台设备登录"
DialogHelper.showCenterDialog(this, "你的账号已在另外一台设备登录"
, StringUtils.buildString("", model, "")
, "知道了", "重新登录"
, () -> {}
@ -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) {