pull/21/head
fengyuecanzhu 3 years ago
parent 6e77f4ae72
commit 6f164eb501
  1. 7
      app/src/main/assets/updatelog.fy
  2. 3
      app/src/main/java/xyz/fycz/myreader/application/CrashHandler.java
  3. 2
      app/src/main/java/xyz/fycz/myreader/model/sourceAnalyzer/BookSourceManager.java
  4. 2
      app/src/main/java/xyz/fycz/myreader/ui/activity/CrashActivity.java
  5. 2
      app/version_code.properties

@ -1,3 +1,10 @@
2022.01.23
风月读书v2.3.5
更新内容:
1、修复部分发现无法加载下一页的问题
2、新增应用崩溃记录界面
3、书源网络支持蓝奏云文件链接(如有密码,用逗号隔开)
2022.01.21
风月读书v2.3.4
更新内容:

@ -39,6 +39,7 @@ import xyz.fycz.myreader.common.URLCONST;
import xyz.fycz.myreader.ui.activity.CrashActivity;
import xyz.fycz.myreader.ui.activity.RestartActivity;
import xyz.fycz.myreader.ui.activity.SplashActivity;
import xyz.fycz.myreader.util.ToastUtils;
import xyz.fycz.myreader.util.utils.FileUtils;
import xyz.fycz.myreader.util.utils.OkHttpUtils;
@ -93,8 +94,10 @@ public final class CrashHandler implements Thread.UncaughtExceptionHandler {
boolean deadlyCrash = currentCrashTime - lastCrashTime < 1000 * 60 * 5;
// 如果是致命的异常,或者是调试模式下
if (deadlyCrash || App.isDebug()) {
ToastUtils.showError("程序发生致命错误");
CrashActivity.start(mApplication, throwable, logFilePath);
} else {
ToastUtils.showError("程序发生错误,正在为您重启");
RestartActivity.Companion.start(mApplication);
}

@ -325,7 +325,7 @@ public class BookSourceManager {
} else if (new File(string).isFile()) {
return importSource(FileUtils.readText(string));
}
if (string.contains("lanzou")) {
if (string.matches("https://.+\\.lanzou[a-z]\\.com/[\\s\\S]*")) {
return LanZouApi.INSTANCE.getUrl(string)
.flatMap((Function<String, ObservableSource<String>>) s -> Observable.create(emitter -> {
emitter.onNext(OkHttpUtils.getHtml(s));

@ -33,6 +33,7 @@ import xyz.fycz.myreader.application.App;
import xyz.fycz.myreader.base.BaseActivity;
import xyz.fycz.myreader.databinding.ActivityCrashBinding;
import xyz.fycz.myreader.util.ShareUtils;
import xyz.fycz.myreader.util.ToastUtils;
/**
* @author fengyue
@ -171,6 +172,7 @@ public class CrashActivity extends BaseActivity {
});
binding.ivCrashRestart.setOnClickListener(v -> {
// 重启应用
ToastUtils.showInfo("重启应用");
RestartActivity.Companion.restart(this);
finish();
});

@ -1,3 +1,3 @@
#Fri Jun 18 21:45:31 CST 2021
VERSION_CODE=234
VERSION_CODE=235
NEED_CREATE_RELEASE=true

Loading…
Cancel
Save