Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Fixed all training's dispersion pattern file name
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Jan 20, 2018
1 parent bdc783e commit 311b6c7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,15 @@ class DispersionPatternActivity : ChildActivityBase() {
}

private fun getDefaultFileName(extension: EFileType): String {
val name = if (statistic.arrowName != null) {
var name = if (statistic.arrowName != null) {
statistic.arrowName!! + "-" + getString(R.string.arrow_number_x, statistic.arrowNumber)
} else {
statistic.exportFileName
}
return getString(R.string.dispersion_pattern) + "-" + name + "." + extension.name.toLowerCase()
if (!name.isNullOrEmpty()) {
name = "-" + name
}
return getString(R.string.dispersion_pattern) + name + "." + extension.name.toLowerCase()
}

companion object {
Expand Down

0 comments on commit 311b6c7

Please sign in to comment.