Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jun 6, 2023
1 parent b62020b commit d448d37
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
8 changes: 6 additions & 2 deletions app/src/main/assets/updateLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!

**2023/05/19**
**2023/06/06**

* 更新cronet: 114.0.5735.57
* 更新cronet: 114.0.5735.52
* 书架管理界面点击书名打开书籍

**2023/05/19**

* 更新cronet: 113.0.5672.131

* 目录格式化js添加一个公用变量gInt, int类型默认值0
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/io/legado/app/ui/book/manage/BookAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BookAdapter(context: Context, val callBack: CallBack) :
}
tvName.setOnClickListener {
getItem(holder.layoutPosition)?.let {
callBack.readBook(it)
callBack.openBook(it)
}
}
tvDelete.setOnClickListener {
Expand Down Expand Up @@ -235,6 +235,6 @@ class BookAdapter(context: Context, val callBack: CallBack) :

fun selectGroup(requestCode: Int, groupId: Long)

fun readBook(book: Book)
fun openBook(book: Book)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ import io.legado.app.data.entities.BookGroup
import io.legado.app.data.entities.BookSource
import io.legado.app.databinding.ActivityArrangeBookBinding
import io.legado.app.help.book.contains
import io.legado.app.help.book.isAudio
import io.legado.app.help.book.isLocal
import io.legado.app.help.config.AppConfig
import io.legado.app.help.config.LocalConfig
import io.legado.app.lib.dialogs.alert
import io.legado.app.lib.theme.primaryColor
import io.legado.app.lib.theme.primaryTextColor
import io.legado.app.ui.book.audio.AudioPlayActivity
import io.legado.app.ui.book.group.GroupManageDialog
import io.legado.app.ui.book.group.GroupSelectDialog
import io.legado.app.ui.book.read.ReadBookActivity
import io.legado.app.ui.book.info.BookInfoActivity
import io.legado.app.ui.widget.SelectActionBar
import io.legado.app.ui.widget.dialog.WaitDialog
import io.legado.app.ui.widget.recycler.DragSelectTouchHelper
Expand Down Expand Up @@ -362,16 +360,10 @@ class BookshelfManageActivity :
}
}

override fun readBook(book: Book) {
when {
book.isAudio ->
startActivity<AudioPlayActivity> {
putExtra("bookUrl", book.bookUrl)
}

else -> startActivity<ReadBookActivity> {
putExtra("bookUrl", book.bookUrl)
}
override fun openBook(book: Book) {
startActivity<BookInfoActivity> {
putExtra("name", book.name)
putExtra("author", book.author)
}
}

Expand Down

0 comments on commit d448d37

Please sign in to comment.