-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2191 from dhis2/hotfix/2.4.2
build: 2.4.2 release
- Loading branch information
Showing
31 changed files
with
376 additions
and
225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"buildTime":"2021-05-27 15:11","gitSha":"b69252dce"} | ||
{"buildTime":"2021-06-30 13:27","gitSha":"78bc79bed"} |
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
28 changes: 28 additions & 0 deletions
28
app/src/main/java/org/dhis2/data/forms/dataentry/FormViewFragmentFactory.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.dhis2.data.forms.dataentry | ||
|
||
import androidx.fragment.app.Fragment | ||
import androidx.fragment.app.FragmentFactory | ||
import org.dhis2.data.location.LocationProvider | ||
import org.dhis2.form.data.FormRepository | ||
import org.dhis2.form.model.RowAction | ||
|
||
class FormViewFragmentFactory( | ||
val formRepository: FormRepository, | ||
val locationProvider: LocationProvider?, | ||
val onItemChangeListener: ((action: RowAction) -> Unit)?, | ||
private val needToForceUpdate: Boolean = false, | ||
val onLoadingListener: ((loading: Boolean) -> Unit)? | ||
) : FragmentFactory() { | ||
override fun instantiate(classLoader: ClassLoader, className: String): Fragment { | ||
return when (className) { | ||
FormView::class.java.name -> FormView( | ||
formRepository, | ||
onItemChangeListener, | ||
locationProvider, | ||
onLoadingListener, | ||
needToForceUpdate | ||
) | ||
else -> super.instantiate(classLoader, className) | ||
} | ||
} | ||
} |
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.