pull/71/head
kunfei 5 years ago
parent 23b5a47190
commit 8218c66cbf
  1. 2
      app/src/main/java/io/legado/app/help/BookHelp.kt
  2. 5
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -86,7 +86,7 @@ object BookHelp {
}
private fun getBookFolder(book: Book): String {
val bookFolder = formatFolderName(book.name + book.bookUrl)
val bookFolder = formatFolderName(book.name + MD5Utils.md5Encode16(book.bookUrl))
return "${getBookCachePath()}${File.separator}$bookFolder"
}

@ -47,6 +47,7 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
R.id.menu_share_it -> viewModel.rssArticle?.let {
shareText("链接分享", it.link)
}
R.id.menu_aloud -> readAloud()
}
return super.onCompatOptionsItemSelected(item)
}
@ -121,6 +122,10 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
return super.onKeyUp(keyCode, event)
}
private fun readAloud() {
}
private fun shareText(title: String, text: String) {
try {
val textIntent = Intent(Intent.ACTION_SEND)

Loading…
Cancel
Save