Skip to content

Commit

Permalink
Fixes "For Note, Underline, Highlight,Square and Freestyle annotation…
Browse files Browse the repository at this point in the history
…s color and font size are not changed on mobile phone and are changed but not saved on Tablet." Closes #186

Upping versionCode to 115.
  • Loading branch information
Dima-Android committed Nov 7, 2024
1 parent 2c87ced commit 5ddd114
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,18 +1123,17 @@ class PdfReaderViewModel @Inject constructor(
}
}
else -> {
val listOfChanges = mutableListOf(
PdfAnnotationChanges.boundingBox,
PdfAnnotationChanges.paths
)
if (annotation is UnderlineAnnotation) {
listOfChanges.add(PdfAnnotationChanges.color)
}
val listOfChanges =
PdfAnnotationChanges.stringValues(
listOf(
PdfAnnotationChanges.boundingBox,
PdfAnnotationChanges.paths
)
).toMutableList()
listOfChanges.addAll(changes)
change(
annotation = annotation,
changes = PdfAnnotationChanges.stringValues(
listOfChanges
)
changes = listOfChanges
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object BuildConfig {
const val compileSdkVersion = 34
const val targetSdk = 34

val versionCode = 114 // Must be updated on every build
val versionCode = 115 // Must be updated on every build
val version = Version(
major = 1,
minor = 0,
Expand Down

0 comments on commit 5ddd114

Please sign in to comment.