Skip to content

Commit

Permalink
Merge branch 'release/0.1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrimault committed Nov 7, 2019
2 parents 40517d0 + b059c4c commit da6f24a
Show file tree
Hide file tree
Showing 51 changed files with 1,144 additions and 1,693 deletions.
67 changes: 13 additions & 54 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions commons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

version = "0.3.8"
version = "0.4.2"

android {
compileSdkVersion 28
Expand Down Expand Up @@ -46,10 +46,10 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0"

implementation 'com.google.android.material:material:1.0.0'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0-beta01"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0-rc01"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.preference:preference:1.1.0'
api 'androidx.room:room-runtime:2.2.0'
api 'androidx.room:room-runtime:2.2.1'

testImplementation 'junit:junit:4.12'
testImplementation 'androidx.test:core:1.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,14 @@ abstract class AbstractInput(
return this.inputTaxa[this.currentSelectedInputTaxonId]
}

fun setCurrentSelectedInputTaxonId(inputTaxonId: Long) {
fun setCurrentSelectedInputTaxonId(inputTaxonId: Long?) {
this.currentSelectedInputTaxonId = inputTaxonId
}

fun clearCurrentSelectedInputTaxon() {
this.currentSelectedInputTaxonId = null
}

fun getLastAddedInputTaxon(): AbstractInputTaxon? {
if (this.inputTaxa.isEmpty()) {
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.lifecycle.MutableLiveData
import androidx.preference.PreferenceManager
import fr.geonature.commons.input.io.InputJsonReader
import fr.geonature.commons.input.io.InputJsonWriter
import fr.geonature.commons.util.FileUtils
import fr.geonature.commons.util.FileUtils.getInputsFolder
import fr.geonature.commons.util.StringUtils.isEmpty
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -155,7 +155,7 @@ class InputManager<I : AbstractInput> private constructor(internal val applicati

@Throws(IOException::class)
private fun getInputExportFile(input: AbstractInput): File {
val inputDir = FileUtils.getInputsFolder(application)
val inputDir = getInputsFolder(application)
inputDir.mkdirs()

return File(inputDir,
Expand Down
Loading

0 comments on commit da6f24a

Please sign in to comment.