pull/878/head
gedoor 4 years ago
parent 8bed0706bf
commit a1e95c2682
  1. 7
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt
  3. 4
      app/src/main/res/menu/book_source_item.xml
  4. 1
      app/src/main/res/values-zh-rHK/strings.xml
  5. 1
      app/src/main/res/values-zh-rTW/strings.xml
  6. 1
      app/src/main/res/values-zh/strings.xml
  7. 1
      app/src/main/res/values/strings.xml

@ -29,6 +29,7 @@ import io.legado.app.lib.theme.ATH
import io.legado.app.lib.theme.primaryTextColor
import io.legado.app.service.help.CheckSource
import io.legado.app.ui.association.ImportBookSourceActivity
import io.legado.app.ui.book.source.debug.BookSourceDebugActivity
import io.legado.app.ui.book.source.edit.BookSourceEditActivity
import io.legado.app.ui.filepicker.FilePicker
import io.legado.app.ui.filepicker.FilePickerDialog
@ -460,6 +461,12 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
viewModel.bottomSource(bookSource)
}
override fun debug(bookSource: BookSource) {
startActivity<BookSourceDebugActivity> {
putExtra("key", bookSource.bookSourceUrl)
}
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
when (requestCode) {

@ -166,6 +166,7 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :
when (menuItem.itemId) {
R.id.menu_top -> callBack.toTop(source)
R.id.menu_bottom -> callBack.toBottom(source)
R.id.menu_debug_source -> callBack.debug(source)
R.id.menu_del -> callBack.del(source)
R.id.menu_enable_explore -> {
callBack.update(source.copy(enabledExplore = !source.enabledExplore))
@ -280,6 +281,7 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :
fun update(vararg bookSource: BookSource)
fun toTop(bookSource: BookSource)
fun toBottom(bookSource: BookSource)
fun debug(bookSource: BookSource)
fun upOrder()
fun upCountView()
}

@ -9,6 +9,10 @@
android:id="@+id/menu_bottom"
android:title="@string/to_bottom" />
<item
android:id="@+id/menu_debug_source"
android:title="@string/debug" />
<item
android:id="@+id/menu_del"
android:title="@string/delete" />

@ -805,5 +805,6 @@
<string name="export_charset">导出编码</string>
<string name="export_to_web_dav">导出到WebDav</string>
<string name="reverse_content">反转内容</string>
<string name="debug">调试</string>
</resources>

@ -809,5 +809,6 @@
<string name="export_charset">匯出編碼</string>
<string name="export_to_web_dav">匯出到WebDav</string>
<string name="reverse_content">反转内容</string>
<string name="debug">调试</string>
</resources>

@ -809,5 +809,6 @@
<string name="export_charset">导出编码</string>
<string name="export_to_web_dav">导出到WebDav</string>
<string name="reverse_content">反转内容</string>
<string name="debug">调试</string>
</resources>

@ -812,5 +812,6 @@
<string name="export_charset">导出编码</string>
<string name="export_to_web_dav">导出到WebDav</string>
<string name="reverse_content">反转内容</string>
<string name="debug">调试</string>
</resources>

Loading…
Cancel
Save