1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-09 09:34:59 +09:00

Editor | Fix | Objects where there is a file block with embedded pdf fail to render (#2037)

This commit is contained in:
Evgenii Kozlov 2022-01-12 19:08:28 +03:00 committed by GitHub
parent 8b733ed30b
commit 9bc31a8c6b
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,7 @@
### Fixes & tech 🚒
* Editor | Failing to render objects containing at least one file block with embedded pdf (#2037)
* Editor | When trying to set a link to an object or to a web page for a text selection, the dedicated screen should not block the editor when the bottom sheet is hidden by swiping down (#2036)
## Version 0.5.0

View file

@ -976,6 +976,17 @@ class DefaultBlockViewRenderer(
selection = selection
)
)
Content.File.Type.PDF -> content.toFileView(
id = block.id,
urlBuilder = urlBuilder,
indent = indent,
mode = if (mode == EditorMode.Edit) BlockView.Mode.EDIT else BlockView.Mode.READ,
isSelected = checkIfSelected(
mode = mode,
block = block,
selection = selection
)
)
Content.File.Type.NONE -> content.toFileView(
id = block.id,
urlBuilder = urlBuilder,