General improvements (#134)
* Add visual options and seamless transitions to the EPUB reader * Add support for DOCX file format * Refine padding and status bar inset handling in Epub pagination mode * Add file size parameter for recent files and sorting * Refactor book data cleanup logic into a centralized method * Bump version to 1.0.40(41)
This commit is contained in:
parent
15264a31ae
commit
6fd6dd5609
20 changed files with 623 additions and 134 deletions
|
|
@ -46,7 +46,8 @@ data class RecentFileItem(
|
|||
val sourceFolderUri: String? = null,
|
||||
val isReflowPreferred: Boolean = false,
|
||||
val customName: String? = null,
|
||||
val highlightsJson: String? = null
|
||||
val highlightsJson: String? = null,
|
||||
val fileSize: Long = 0L
|
||||
) {
|
||||
fun getUri(): Uri? = uriString?.toUri()
|
||||
}
|
||||
|
|
@ -75,7 +76,8 @@ fun RecentFileEntity.toRecentFileItem(): RecentFileItem {
|
|||
sourceFolderUri = this.sourceFolderUri,
|
||||
isReflowPreferred = this.isReflowPreferred,
|
||||
customName = this.customName,
|
||||
highlightsJson = this.highlights
|
||||
highlightsJson = this.highlights,
|
||||
fileSize = this.fileSize
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -103,7 +105,8 @@ fun RecentFileItem.toRecentFileEntity(): RecentFileEntity {
|
|||
sourceFolderUri = this.sourceFolderUri,
|
||||
isReflowPreferred = this.isReflowPreferred,
|
||||
customName = this.customName,
|
||||
highlights = this.highlightsJson
|
||||
highlights = this.highlightsJson,
|
||||
fileSize = this.fileSize
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue