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:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|locale|density|uiMode"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:theme="@style/BookStory"
|
android:theme="@style/BookStory"
|
||||||
android:windowSoftInputMode="adjustResize"></activity>
|
android:windowSoftInputMode="adjustResize" />
|
||||||
|
|
||||||
<!-- Save app locales -->
|
<!-- Save app locales -->
|
||||||
<service
|
<service
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class BookMapperImpl @Inject constructor() : BookMapper {
|
||||||
filePath = bookEntity.filePath,
|
filePath = bookEntity.filePath,
|
||||||
lastOpened = null,
|
lastOpened = null,
|
||||||
category = bookEntity.category,
|
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(
|
listOf(
|
||||||
bookMapper.toBookEntity(
|
bookMapper.toBookEntity(
|
||||||
book.copy(
|
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