|
@@ -432,8 +432,8 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
viewModel.highLightAttributeLiveData.value?.let { attr ->
|
|
viewModel.highLightAttributeLiveData.value?.let { attr ->
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
}
|
|
}
|
|
- window.annotationAttributeView.onPropertyChangeListener = object : AnnotationAttributeView.OnPropertyChangeListener {
|
|
|
|
- override fun onPropertyChange(annotationAttributeView: AnnotationAttributeView) {
|
|
|
|
|
|
+ window.annotationAttributeView.onChangeListener = object : AnnotationAttributeView.OnChangeListener {
|
|
|
|
+ override fun onChange(annotationAttributeView: AnnotationAttributeView) {
|
|
viewModel.setHighLightAttributes(annotationAttributeView.annotationAttribute)
|
|
viewModel.setHighLightAttributes(annotationAttributeView.annotationAttribute)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -459,8 +459,8 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
viewModel.strikeAttributeLiveData.value?.let { attr ->
|
|
viewModel.strikeAttributeLiveData.value?.let { attr ->
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
}
|
|
}
|
|
- window.annotationAttributeView.onPropertyChangeListener = object : AnnotationAttributeView.OnPropertyChangeListener {
|
|
|
|
- override fun onPropertyChange(annotationAttributeView: AnnotationAttributeView) {
|
|
|
|
|
|
+ window.annotationAttributeView.onChangeListener = object : AnnotationAttributeView.OnChangeListener {
|
|
|
|
+ override fun onChange(annotationAttributeView: AnnotationAttributeView) {
|
|
viewModel.setStrikeOutAttributes(annotationAttributeView.annotationAttribute)
|
|
viewModel.setStrikeOutAttributes(annotationAttributeView.annotationAttribute)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -486,8 +486,8 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
viewModel.underLineAttributeLiveData.value?.let { attr ->
|
|
viewModel.underLineAttributeLiveData.value?.let { attr ->
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
window.annotationAttributeView.annotationAttribute = attr
|
|
}
|
|
}
|
|
- window.annotationAttributeView.onPropertyChangeListener = object : AnnotationAttributeView.OnPropertyChangeListener {
|
|
|
|
- override fun onPropertyChange(annotationAttributeView: AnnotationAttributeView) {
|
|
|
|
|
|
+ window.annotationAttributeView.onChangeListener = object : AnnotationAttributeView.OnChangeListener {
|
|
|
|
+ override fun onChange(annotationAttributeView: AnnotationAttributeView) {
|
|
viewModel.setUnderLineAttributes(annotationAttributeView.annotationAttribute)
|
|
viewModel.setUnderLineAttributes(annotationAttributeView.annotationAttribute)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -513,8 +513,8 @@ abstract class ReaderActivity : AppCompatActivity() {
|
|
viewModel.inkAttributeLiveData.value?.let { attr ->
|
|
viewModel.inkAttributeLiveData.value?.let { attr ->
|
|
window.annotationAttributeView.inkAttribute = attr
|
|
window.annotationAttributeView.inkAttribute = attr
|
|
}
|
|
}
|
|
- window.annotationAttributeView.onPropertyChangeListener = object : AnnotationAttributeView.OnPropertyChangeListener {
|
|
|
|
- override fun onPropertyChange(annotationAttributeView: AnnotationAttributeView) {
|
|
|
|
|
|
+ window.annotationAttributeView.onChangeListener = object : AnnotationAttributeView.OnChangeListener {
|
|
|
|
+ override fun onChange(annotationAttributeView: AnnotationAttributeView) {
|
|
viewModel.setInkAttributes(annotationAttributeView.inkAttribute)
|
|
viewModel.setInkAttributes(annotationAttributeView.inkAttribute)
|
|
}
|
|
}
|
|
}
|
|
}
|