forked from dhis2/dhis2-android-capture-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ANDROAPP-5165] fix accuracy indicator comments (dhis2#3778)
* fix accuracy indicator comments Signed-off-by: Pablo <[email protected]> * remove commented code Signed-off-by: Pablo <[email protected]> --------- Signed-off-by: Pablo <[email protected]>
- Loading branch information
Showing
16 changed files
with
200 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
commons/src/main/java/org/dhis2/commons/featureconfig/model/Feature.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
package org.dhis2.commons.featureconfig.model | ||
|
||
enum class Feature(val description: String) { AUTO_LOGOUT("automatic log out") } | ||
enum class Feature(val description: String) { | ||
AUTO_LOGOUT("automatic log out"), | ||
RESPONSIVE_HOME("responsive home"), | ||
} |
11 changes: 10 additions & 1 deletion
11
commons/src/main/java/org/dhis2/commons/featureconfig/model/FeatureState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
package org.dhis2.commons.featureconfig.model | ||
|
||
data class FeatureState(val feature: Feature, val enable: Boolean = false) | ||
data class FeatureState( | ||
val feature: Feature, | ||
val enable: Boolean = false, | ||
val canBeEnabled: Boolean = true, | ||
val extras: FeatureOptions? = null, | ||
) | ||
|
||
sealed class FeatureOptions { | ||
data class ResponsiveHome(val totalItems: Int?) : FeatureOptions() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.