pull/525/head
gedoor 4 years ago
parent 8c35cbde2d
commit 9f4a2e623f
  1. 4
      app/src/main/assets/help/SourceMBookHelp.md
  2. 21
      app/src/main/assets/help/SourceMRssHelp.md
  3. 11
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt
  4. 2
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt
  5. 7
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt
  6. 9
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt
  7. 10
      app/src/main/res/menu/rss_source.xml
  8. 9
      app/src/main/res/menu/source_edit.xml
  9. 2
      app/src/main/res/values-zh-rHK/strings.xml
  10. 2
      app/src/main/res/values-zh-rTW/strings.xml
  11. 2
      app/src/main/res/values-zh/strings.xml

@ -10,8 +10,8 @@
* 本地导入
* 网络导入
* 二维码导入
* 分享选中
* 选择源的更多操作在右下角的菜单里面,操作都是针对选择的书源
* 分享选中源
* 选择源的更多操作在右下角的菜单里面,操作都是针对选择的书源
* 启用所选
* 禁用所选
* 添加分组

@ -0,0 +1,21 @@
# 订阅源管理界面帮助
* 订阅源可以通过规则订阅一些网络内容
* 书源右上角标志
* 绿点表示书源有发现,且启用了发现
* 红点表示书源有发现,但是未启用
* 没有标志表示此书源没有发现
* 右上角有分组菜单,可以按分组筛选书源
* 右上角更多菜单里包含
* 新建订阅源
* 本地导入
* 网络导入
* 二维码导入
* 分享选中源
* 选择源的更多操作在右下角的菜单里面,操作都是针对选择的书源
* 启用所选
* 禁用所选
* 置顶所选
* 置底所选
* 导出所选
* 校验失败的书源分组会加上"失效",选择"失效"分组即可批量操作

@ -3,7 +3,6 @@ package io.legado.app.ui.book.source.edit
import android.app.Activity
import android.content.Intent
import android.graphics.Rect
import android.net.Uri
import android.os.Bundle
import android.view.Gravity
import android.view.Menu
@ -102,15 +101,7 @@ class BookSourceEditActivity :
getString(R.string.share_book_source),
GSON.toJson(getSource())
)
R.id.menu_rule_summary -> {
try {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(getString(R.string.source_rule_url))
startActivity(intent)
} catch (e: Exception) {
toast(R.string.can_not_open)
}
}
R.id.menu_help -> showRuleHelp()
R.id.menu_login -> getSource().let {
if (checkSource(it)) {
if (it.loginUrl.isNullOrEmpty()) {

@ -216,7 +216,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
}
private fun showHelp() {
val text = String(assets.open("help/bookSourcesHelp.md").readBytes())
val text = String(assets.open("help/SourceMBookHelp.md").readBytes())
TextDialog.show(supportFragmentManager, text, TextDialog.MD)
}

@ -84,6 +84,7 @@ class RssSourceEditActivity :
override fun onCompatCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.source_edit, menu)
menu.findItem(R.id.menu_login).isVisible = false
return super.onCompatCreateOptionsMenu(menu)
}
@ -110,7 +111,11 @@ class RssSourceEditActivity :
R.id.menu_qr_code_camera -> startActivityForResult<QrCodeActivity>(qrRequestCode)
R.id.menu_paste_source -> viewModel.pasteSource { upRecyclerView(it) }
R.id.menu_share_str -> share(GSON.toJson(getRssSource()))
R.id.menu_share_qr -> shareWithQr(getString(R.string.share_rss_source), GSON.toJson(getRssSource()))
R.id.menu_share_qr -> shareWithQr(
getString(R.string.share_rss_source),
GSON.toJson(getRssSource())
)
R.id.menu_help -> showRuleHelp()
}
return super.onCompatOptionsItemSelected(item)
}

@ -31,6 +31,7 @@ import io.legado.app.ui.filepicker.FilePickerDialog
import io.legado.app.ui.qrcode.QrCodeActivity
import io.legado.app.ui.rss.source.edit.RssSourceEditActivity
import io.legado.app.ui.widget.SelectActionBar
import io.legado.app.ui.widget.dialog.TextDialog
import io.legado.app.ui.widget.recycler.DragSelectTouchHelper
import io.legado.app.ui.widget.recycler.ItemTouchCallback
import io.legado.app.ui.widget.recycler.VerticalDivider
@ -92,6 +93,9 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView
R.id.menu_import_source_qr -> startActivityForResult<QrCodeActivity>(qrRequestCode)
R.id.menu_group_manage -> GroupManageDialog()
.show(supportFragmentManager, "rssGroupManage")
R.id.menu_share_source -> {
}
R.id.menu_help -> showHelp()
else -> if (item.groupId == R.id.source_group) {
binding.titleBar.findViewById<SearchView>(R.id.search_view)
.setQuery(item.title, true)
@ -214,6 +218,11 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView
})
}
private fun showHelp() {
val text = String(assets.open("help/SourceMRssHelp.md").readBytes())
TextDialog.show(supportFragmentManager, text, TextDialog.MD)
}
override fun upCountView() {
binding.selectActionBar.upCountView(
adapter.getSelection().size,

@ -49,9 +49,15 @@
app:showAsAction="never" />
<item
android:id="@+id/menu_share_wifi"
android:id="@+id/menu_share_source"
android:icon="@drawable/ic_share"
android:title="@string/wifi_share"
android:title="@string/share_selected_source"
app:showAsAction="never" />
<item
android:id="@+id/menu_help"
android:icon="@drawable/ic_help"
android:title="@string/help"
app:showAsAction="never" />
</menu>

@ -45,13 +45,8 @@
app:showAsAction="never" />
<item
android:id="@+id/menu_share_wifi"
android:title="@string/wifi_share"
app:showAsAction="never" />
<item
android:id="@+id/menu_rule_summary"
android:title="@string/rule_summary"
android:id="@+id/menu_help"
android:title="@string/help"
app:showAsAction="never" />
</menu>

@ -761,7 +761,7 @@
<string name="theme_list">主题列表</string>
<string name="theme_list_summary">使用保存主题,导入,分享主题</string>
<string name="select_theme">切換默認主題</string>
<string name="share_selected_source">分享選中</string>
<string name="share_selected_source">分享選中源</string>
<string name="sort_by_lastUpdateTime">時間排序</string>
<string name="search_content">全文搜索</string>
<string name="rss_source_empty">关注公众号[开源阅读]获取订阅源!</string>

@ -762,7 +762,7 @@
<string name="theme_list">主題列表</string>
<string name="theme_list_summary">使用儲存主題,匯入,分享主題</string>
<string name="select_theme">切換預設主題</string>
<string name="share_selected_source">分享選中</string>
<string name="share_selected_source">分享選中源</string>
<string name="sort_by_lastUpdateTime">時間排序</string>
<string name="search_content">全文搜尋</string>
<string name="rss_source_empty">關注公眾號[开源阅读]獲取訂閱源!</string>

@ -455,7 +455,7 @@
<string name="source_http_header">请求头(header)</string>
<string name="debug_source">调试源</string>
<string name="import_by_qr_code">二维码导入</string>
<string name="share_selected_source">分享选中</string>
<string name="share_selected_source">分享选中源</string>
<string name="scan_qr_code">扫描二维码</string>
<string name="click_on_selected_show_menu">选中时点击可弹出菜单</string>
<string name="theme">主题</string>

Loading…
Cancel
Save