Commit 54a50586 authored by hywang's avatar hywang

1.登录时间错误提示框不可取消

parent 93085613
...@@ -9,8 +9,8 @@ android { ...@@ -9,8 +9,8 @@ android {
applicationId "com.phlx.anchorcollect_p" applicationId "com.phlx.anchorcollect_p"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 8 versionCode 9
versionName "2.0.2" versionName "2.0.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
......
...@@ -108,7 +108,7 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding, LoginVM> { ...@@ -108,7 +108,7 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding, LoginVM> {
viewModel.dateEvent.observe(this, new Observer<Integer>() { viewModel.dateEvent.observe(this, new Observer<Integer>() {
@Override @Override
public void onChanged(Integer integer) { public void onChanged(Integer integer) {
new MaterialDialog.Builder(LoginActivity.this).canceledOnTouchOutside(false).title("系统提示").content("日期错误,请联网自动获取日期").positiveText("退出").onAny(new MaterialDialog.SingleButtonCallback() { new MaterialDialog.Builder(LoginActivity.this).cancelable(false).canceledOnTouchOutside(false).title("系统提示").content("日期错误,请联网自动获取日期").positiveText("退出").onAny(new MaterialDialog.SingleButtonCallback() {
@Override @Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) { public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
if (which == DialogAction.POSITIVE) { if (which == DialogAction.POSITIVE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment