Skip to content

Commit 3593eb5

Browse files
committed
3.1.6
1 parent c02a888 commit 3593eb5

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ android {
1515
minSdkVersion 21
1616
targetSdkVersion 34
1717
versionCode 54
18-
versionName "3.1.5"
18+
versionName "3.1.6"
1919
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020
}
2121

app/src/main/java/com/lagradost/quicknovel/BookDownloader2.kt

+20-4
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,13 @@ object BookDownloader2Helper {
597597
}
598598

599599
@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 {
601607
if (activity == null) return false
602608
if (!activity.checkWrite()) {
603609
activity.requestRW()
@@ -1069,7 +1075,12 @@ object BookDownloader2 {
10691075
}
10701076
}
10711077

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+
) {
10731084
showToast(R.string.generating_epub)
10741085
if (!turnToEpub(author, name, apiName, synopsis)) {
10751086
showToast(R.string.error_loading_novel)
@@ -1144,7 +1155,12 @@ object BookDownloader2 {
11441155
deleteNovelAsync(author, name, apiName)
11451156
}
11461157

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 {
11481164
return BookDownloader2Helper.turnToEpub(activity, author, name, apiName, synopsis)
11491165
}
11501166

@@ -1675,7 +1691,7 @@ object BookDownloader2 {
16751691
val filesDir = activity?.filesDir ?: return@ioSafe
16761692
val sApiName = BookDownloader2Helper.sanitizeFilename(api.name)
16771693
val sAuthor =
1678-
BookDownloader2Helper.sanitizeFilename(load.author ?: "")
1694+
BookDownloader2Helper.sanitizeFilename(load.author ?: "")
16791695
val sName = BookDownloader2Helper.sanitizeFilename(load.name)
16801696
val id = generateId(load, api.name)
16811697

0 commit comments

Comments
 (0)