@@ -597,7 +597,13 @@ object BookDownloader2Helper {
597
597
}
598
598
599
599
@WorkerThread
600
- fun turnToEpub (activity : Activity ? , author : String? , name : String , apiName : String , synopsis : String? ): Boolean {
600
+ fun turnToEpub (
601
+ activity : Activity ? ,
602
+ author : String? ,
603
+ name : String ,
604
+ apiName : String ,
605
+ synopsis : String?
606
+ ): Boolean {
601
607
if (activity == null ) return false
602
608
if (! activity.checkWrite()) {
603
609
activity.requestRW()
@@ -1069,7 +1075,12 @@ object BookDownloader2 {
1069
1075
}
1070
1076
}
1071
1077
1072
- private fun generateAndReadEpub (author : String? , name : String , apiName : String , synopsis : String? ) {
1078
+ private fun generateAndReadEpub (
1079
+ author : String? ,
1080
+ name : String ,
1081
+ apiName : String ,
1082
+ synopsis : String?
1083
+ ) {
1073
1084
showToast(R .string.generating_epub)
1074
1085
if (! turnToEpub(author, name, apiName, synopsis)) {
1075
1086
showToast(R .string.error_loading_novel)
@@ -1144,7 +1155,12 @@ object BookDownloader2 {
1144
1155
deleteNovelAsync(author, name, apiName)
1145
1156
}
1146
1157
1147
- private fun turnToEpub (author : String? , name : String , apiName : String , synopsis : String? ): Boolean {
1158
+ private fun turnToEpub (
1159
+ author : String? ,
1160
+ name : String ,
1161
+ apiName : String ,
1162
+ synopsis : String?
1163
+ ): Boolean {
1148
1164
return BookDownloader2Helper .turnToEpub(activity, author, name, apiName, synopsis)
1149
1165
}
1150
1166
@@ -1675,7 +1691,7 @@ object BookDownloader2 {
1675
1691
val filesDir = activity?.filesDir ? : return @ioSafe
1676
1692
val sApiName = BookDownloader2Helper .sanitizeFilename(api.name)
1677
1693
val sAuthor =
1678
- BookDownloader2Helper .sanitizeFilename(load.author ? : " " )
1694
+ BookDownloader2Helper .sanitizeFilename(load.author ? : " " )
1679
1695
val sName = BookDownloader2Helper .sanitizeFilename(load.name)
1680
1696
val id = generateId(load, api.name)
1681
1697
0 commit comments