refactor: small refactor
This commit is contained in:
parent
d11d4e0121
commit
d275e75c62
3 changed files with 3 additions and 3 deletions
|
|
@ -54,7 +54,7 @@
|
|||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|locale|density|uiMode"
|
||||
android:exported="false"
|
||||
android:theme="@style/BookStory"
|
||||
android:windowSoftInputMode="adjustResize"></activity>
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
|
||||
<!-- Save app locales -->
|
||||
<service
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class BookMapperImpl @Inject constructor() : BookMapper {
|
|||
filePath = bookEntity.filePath,
|
||||
lastOpened = null,
|
||||
category = bookEntity.category,
|
||||
coverImage = if (bookEntity.image != null) bookEntity.image.toUri() else null
|
||||
coverImage = bookEntity.image?.toUri()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -192,7 +192,7 @@ class BookRepositoryImpl @Inject constructor(
|
|||
listOf(
|
||||
bookMapper.toBookEntity(
|
||||
book.copy(
|
||||
coverImage = if (entity.image != null) entity.image.toUri() else null
|
||||
coverImage = entity.image?.toUri()
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue