refactor: small refactor

This commit is contained in:
Acclorite 2025-04-25 10:13:59 +03:00
parent d11d4e0121
commit d275e75c62
No known key found for this signature in database
GPG key ID: 6E54C611F6EE8593
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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()
)
}
}

View file

@ -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()
)
)
)