Skip to content

Commit

Permalink
Fixes after merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Saud-97 committed Oct 26, 2023
1 parent de21483 commit 4cb2f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ enum class LibrarySort(
LatestChapter -> "LATEST_CHAPTER"
DateFetched -> "CHAPTER_FETCH_DATE"
DateAdded -> "DATE_ADDED"
Author -> "AUTHOR"
else -> "ALPHABETICAL"
}
return "$type,ASCENDING"
Expand Down Expand Up @@ -83,6 +84,7 @@ enum class LibrarySort(
"LATEST_CHAPTER" -> LatestChapter
"CHAPTER_FETCH_DATE" -> DateFetched
"DATE_ADDED" -> DateAdded
"AUTHOR" -> Author
else -> Title
}
} catch (e: Exception) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ open class WebViewActivity : BaseWebViewActivity() {

private fun clearCookies() {
val url = binding.webview.url ?: return
val cleared = network.cookieManager.remove(url.toHttpUrl())
val cleared = network.cookieJar.remove(url.toHttpUrl())
toast("Cleared $cleared cookies for: $url")
}

Expand Down

0 comments on commit 4cb2f25

Please sign in to comment.