优化
This commit is contained in:
@@ -163,7 +163,11 @@ class ExportBookService : BaseService() {
|
|||||||
val book = appDb.bookDao.getBook(bookUrl)
|
val book = appDb.bookDao.getBook(bookUrl)
|
||||||
try {
|
try {
|
||||||
book ?: throw NoStackTraceException("获取${bookUrl}书籍出错")
|
book ?: throw NoStackTraceException("获取${bookUrl}书籍出错")
|
||||||
notificationContent = "正在导出(${book.name}),还有${waitExportBooks.size}本待导出"
|
notificationContent = getString(
|
||||||
|
R.string.export_book_notification_content,
|
||||||
|
book.name,
|
||||||
|
waitExportBooks.size
|
||||||
|
)
|
||||||
upNotification()
|
upNotification()
|
||||||
if (exportConfig.type == "epub") {
|
if (exportConfig.type == "epub") {
|
||||||
if (exportConfig.epubScope.isNullOrBlank()) {
|
if (exportConfig.epubScope.isNullOrBlank()) {
|
||||||
|
|||||||
@@ -1123,4 +1123,5 @@
|
|||||||
<string name="bookshelf_px_4" >Comprehensive</string>
|
<string name="bookshelf_px_4" >Comprehensive</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1126,4 +1126,5 @@
|
|||||||
<string name="bookshelf_px_4" >Comprehensive</string>
|
<string name="bookshelf_px_4" >Comprehensive</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1126,4 +1126,5 @@
|
|||||||
<string name="bookshelf_px_4" >Comprehensive</string>
|
<string name="bookshelf_px_4" >Comprehensive</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1122,4 +1122,5 @@ Còn </string>
|
|||||||
<string name="bookshelf_px_4" >Comprehensive</string>
|
<string name="bookshelf_px_4" >Comprehensive</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -1123,4 +1123,5 @@
|
|||||||
<string name="bookshelf_px_4" >綜合排序</string>
|
<string name="bookshelf_px_4" >綜合排序</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1125,4 +1125,5 @@
|
|||||||
<string name="bookshelf_px_4" >綜合排序</string>
|
<string name="bookshelf_px_4" >綜合排序</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1125,4 +1125,5 @@
|
|||||||
<string name="bookshelf_px_4" >综合排序</string>
|
<string name="bookshelf_px_4" >综合排序</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1126,4 +1126,5 @@
|
|||||||
<string name="bookshelf_px_4" >Comprehensive</string>
|
<string name="bookshelf_px_4" >Comprehensive</string>
|
||||||
<string name="effective_replaces">起效的替换</string>
|
<string name="effective_replaces">起效的替换</string>
|
||||||
<string name="export_book">导出书籍</string>
|
<string name="export_book">导出书籍</string>
|
||||||
|
<string name="export_book_notification_content">正在导出(%1$s),还有%2$i本待导出</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user