Skip to content

Commit

Permalink
Add logs to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
kamathprasad9 committed Mar 25, 2024
1 parent 93bfae5 commit 7585d4b
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,26 @@ class FieldAudioHelper @Inject constructor(@ActivityContext private val context:
)
}

val geoNavLogWriter = context.getGeoNavHelper().getGeoNavLogLimitedUri()
val geoNavFile = geoNavLogWriter?.let {
var geoNavLogWriter = context.getGeoNavHelper().getGeoNavLogLimitedUri()
val limitedGeoNavFile = geoNavLogWriter?.let {
DocumentFile.fromSingleUri(context,
it
)
}

geoNavLogWriter = context.getGeoNavHelper().getGeoNavLogFullUri()
val fullGeoNavFile = geoNavLogWriter?.let {
DocumentFile.fromSingleUri(context,
it
)
}

val paths = ArrayList<DocumentFile?>()
paths.add(audioDocumentFile)
paths.add(geoNavFile)
if(limitedGeoNavFile != null)
paths.add(limitedGeoNavFile)
if(fullGeoNavFile != null)
paths.add(fullGeoNavFile)
paths.add(traitsDocumentFile)

val mGeneratedName = "field_audio_log" + context.cRange.plot_id + "_" + fieldAlias + " " + timeStamp.format(c.time) + ".zip"
Expand Down

0 comments on commit 7585d4b

Please sign in to comment.