Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Dec 4, 2018
1 parent e33927a commit da0bb57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
case R.id.action_del_select:
mPresenter.delData(adapter.getSelectDataList());
break;
case R.id.action_reset_book_source:
mPresenter.importBookSource(getString(R.string.default_source_url));
break;
case R.id.action_check_book_source:
mPresenter.checkBookSource();
break;
Expand Down Expand Up @@ -361,8 +358,8 @@ private void selectBookSourceFile() {
private void importBookSourceOnLine() {
String cacheUrl = ACache.get(this).getAsString("sourceUrl");
moDialogHUD.showInputBox("输入书源网址",
TextUtils.isEmpty(cacheUrl) ? getString(R.string.default_source_url) : cacheUrl,
new String[]{getString(R.string.default_source_url)},
cacheUrl,
new String[]{cacheUrl},
inputText -> {
ACache.get(this).put("sourceUrl", inputText);
mPresenter.importBookSource(inputText);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
case R.id.action_import_onLine:
String cacheUrl = ACache.get(this).getAsString("replaceUrl");
moDialogHUD.showInputBox("输入替换规则网址",
TextUtils.isEmpty(cacheUrl) ? getString(R.string.default_replace_url) : cacheUrl,
new String[]{getString(R.string.default_replace_url)},
cacheUrl,
new String[]{cacheUrl},
inputText -> {
ACache.get(this).put("replaceUrl", inputText);
mPresenter.importDataS(inputText);
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/menu/menu_book_source_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@
android:title="@string/del_select"
app:showAsAction="never" />

<item
android:id="@+id/action_reset_book_source"
android:icon="@drawable/ic_refresh_black_24dp"
android:title="@string/refresh_default"
app:showAsAction="never" />

<item
android:id="@+id/action_check_book_source"
android:icon="@drawable/ic_check_source"
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/pref_key_value.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

<string name="pv_user_agent">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.2357.134 Safari/537.36</string>

<string name="default_source_url">http://read.hostfans.cn/bookSource.txt</string>
<string name="default_replace_url">http://read.hostfans.cn/replaceRule.txt</string>
<string name="source_rule_url">https://gedoor.github.io/MyBookshelf/sourcerule.html</string>
<string name="this_github_url">https://github.com/gedoor/MyBookshelf</string>
<string name="disclaimer_url">https://gedoor.github.io/MyBookshelf/disclaimer.html</string>
Expand Down

0 comments on commit da0bb57

Please sign in to comment.