Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andi@tryb.de authored and andi@tryb.de committed May 15, 2020
1 parent 0396fbe commit c47ac3d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions app/src/main/java/org/blitzortung/android/data/FetchDataTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,13 @@ internal open class FetchDataTask(
var result = ResultEvent(referenceTime = System.currentTimeMillis(), parameters = parameters, flags = flags)

dataProvider.retrieveData {
if (dataMode.raster) {
result = getStrikesGrid(parameters, result)
result = if (dataMode.raster) {
getStrikesGrid(parameters, result)
} else {
result = getStrikes(parameters, result)
getStrikes(parameters, result)
}

/*if (taskParameters.updateParticipants) {
result.copy(stations = getStations(parameters.region))
}*/
}

/*if (taskParameters.updateParticipants) {
result.copy(stations = dataProvider!!.getStations(parameters.region))
}*/

return@withContext result
} catch (e: RuntimeException) {
e.printStackTrace()
Expand Down Expand Up @@ -90,5 +82,4 @@ internal open class FetchDataTask(
resultConsumer.invoke(result)
}
}

}

0 comments on commit c47ac3d

Please sign in to comment.