add some tips

pull/22/head
fengyuecanzhu 3 years ago
parent 265eeb623c
commit 245f4b80b3
  1. 11
      app/src/main/assets/updatelog.fy
  2. 9
      app/src/main/java/xyz/fycz/myreader/ui/activity/ReadActivity.java
  3. 25
      app/src/main/java/xyz/fycz/myreader/ui/activity/SearchBookActivity.java

@ -1,10 +1,11 @@
风月读书v2.4.5
更新内容:
1、修复书籍无法导出缓存的问题
2、修复部分书源bug
3、修复同名书籍详情页加载bug
4、修复搜索时当前分组不存在时无法搜索的问题
5、Cookie支持备份&恢复
1、新增部分提示
2、修复书籍无法导出缓存的问题
3、修复部分书源bug
4、修复同名书籍详情页加载bug
5、修复搜索时当前分组不存在时无法搜索的问题
6、Cookie支持备份&恢复
2022.04.24
风月读书v2.4.4

@ -140,6 +140,7 @@ import xyz.fycz.myreader.widget.page.TxtChar;
import static android.view.View.GONE;
import static android.view.View.VISIBLE;
import static xyz.fycz.myreader.util.UriFileUtil.getPath;
import static xyz.fycz.myreader.widget.page.PageMode.SCROLL;
/**
* @author fengyue
@ -392,7 +393,7 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
@Override
public void onLongPress() {
if (mSetting.getPageMode() == PageMode.SCROLL){
if (mSetting.getPageMode() == SCROLL){
ToastUtils.showWarring("滚动模式暂不支持长按复制");
return;
}
@ -515,7 +516,7 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
});
binding.readTvListenBook.setOnClickListener(v -> {
if (mSetting.getPageMode() == PageMode.SCROLL) {
if (mSetting.getPageMode() == SCROLL) {
ToastUtils.showWarring("朗读暂不支持滚动翻页模式!");
return;
}
@ -1274,6 +1275,10 @@ public class ReadActivity extends BaseActivity<ActivityReadBinding> implements C
@Override
public void onPageModeChange() {
mPageLoader.setPageMode(mSetting.getPageMode());
if (mSetting.getPageMode().equals(SCROLL)){
DialogCreator.createTipDialog(ReadActivity.this,
"滚动模式存在大量问题,不建议使用;且作者本人不使用此模式,大概率不会进行修复/优化,也不接受此模式的问题反馈");
}
}
@Override

@ -105,8 +105,6 @@ public class SearchBookActivity extends BaseActivity<ActivitySearchBookBinding>
private SearchHistoryService mSearchHistoryService;
private int allThreadCount;
private SearchEngine searchEngine;
private Setting mSetting;
@ -751,8 +749,7 @@ public class SearchBookActivity extends BaseActivity<ActivitySearchBookBinding>
initSearchList();
List<ReadCrawler> readCrawlers = ReadCrawlerUtil
.getEnableReadCrawlers(SharedPreUtils.getInstance().getString("searchGroup"));
allThreadCount = readCrawlers.size();
if (allThreadCount == 0) {
if (readCrawlers.size() == 0) {
ToastUtils.showWarring("当前书源已全部禁用,无法搜索!");
binding.rpb.setIsAutoLoading(false);
return;
@ -760,9 +757,29 @@ public class SearchBookActivity extends BaseActivity<ActivitySearchBookBinding>
/*for (ReadCrawler readCrawler : readCrawlers) {
searchBookByCrawler(readCrawler, readCrawler.getSearchCharset());
}*/
if (readCrawlers.size() > 2000 && !SharedPreUtils.getInstance().getBoolean("searchBookWarning")) {
DialogCreator.createThreeButtonDialog(this, "书源过多警告",
"当前搜索书源数量超过2000(建议1000以内),继续搜索可能会导致软件异常(如搜索时前往阅读页返回后将会导致卡死黑屏),确定要继续搜索吗?",
true, "继续搜索并不再提示", "书源管理", "继续搜索",
(dialog, which) -> {
SharedPreUtils.getInstance().putBoolean("searchBookWarning", true);
searchEngine.initSearchEngine(readCrawlers);
searchEngine.search(searchKey);
}, (dialog, which) -> {
startActivityForResult(new Intent(this, BookSourceActivity.class),
APPCONST.REQUEST_BOOK_SOURCE);
},
(dialog, which) -> {
searchEngine.initSearchEngine(readCrawlers);
searchEngine.search(searchKey);
}
);
} else {
searchEngine.initSearchEngine(readCrawlers);
searchEngine.search(searchKey);
}
}
/**
* 搜索

Loading…
Cancel
Save