Skip to content

Commit

Permalink
'showInformation' -> database -> model/JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofsn committed Mar 23, 2019
1 parent 40b0911 commit b6f733f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import java.util.concurrent.Executors
// FORM
EntityFormAnswered::class
],
version = 5,
version = 6,
exportSchema = false
)
@TypeConverters(Converters::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ data class EntityFormSettings(

val showIndicatorError: Boolean = true,
val showIndicatorInformation: Boolean = true,
val showInformation: Boolean = true,
val inputAnswersInOtherScreen: Boolean = false,
val showSymbolRequired: Boolean = true,
val editable: Boolean = true,
Expand All @@ -40,6 +41,7 @@ data class EntityFormSettings(
fun toModel() = FormSettings(
showIndicatorError = showIndicatorError,
showIndicatorInformation = showIndicatorInformation,
showInformation = showInformation,
inputAnswersInOtherScreen = inputAnswersInOtherScreen,
showSymbolRequired = showSymbolRequired,
editable = editable,
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/raw/questions_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"settings": {
"inputAnswersInOtherScreen": true,
"showIndicatorInformation": false,
"showInformation": true,
"showIndicatorError": true,
"showSymbolRequired": true,
"editable": true
Expand Down

0 comments on commit b6f733f

Please sign in to comment.