对话框优化

pull/5/head
fengyuecanzhu 4 years ago
parent 36c30626a9
commit 0c3cf6bd9e
  1. 3
      app/src/main/java/xyz/fycz/myreader/ui/activity/SplashActivity.java

@ -201,14 +201,17 @@ public class SplashActivity extends BaseActivity {
if (BookGroupService.getInstance().curGroupIsPrivate()) { if (BookGroupService.getInstance().curGroupIsPrivate()) {
App.runOnUiThread(() -> { App.runOnUiThread(() -> {
MyAlertDialog.showPrivateVerifyDia(SplashActivity.this, needGoTo -> { MyAlertDialog.showPrivateVerifyDia(SplashActivity.this, needGoTo -> {
if (!hasStart)
(new Thread(start)).start(); (new Thread(start)).start();
}, () -> { }, () -> {
SharedPreUtils.getInstance().putString(SplashActivity.this.getString(R.string.curBookGroupId), ""); SharedPreUtils.getInstance().putString(SplashActivity.this.getString(R.string.curBookGroupId), "");
SharedPreUtils.getInstance().putString(SplashActivity.this.getString(R.string.curBookGroupName), ""); SharedPreUtils.getInstance().putString(SplashActivity.this.getString(R.string.curBookGroupName), "");
if (!hasStart)
(new Thread(start)).start(); (new Thread(start)).start();
}); });
}); });
} else { } else {
if (!hasStart)
(new Thread(start)).start(); (new Thread(start)).start();
} }
} }

Loading…
Cancel
Save