remove curly braces from format string
This commit is contained in:
parent
f1e38febcd
commit
1d90587429
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class SaveImageDialog(val activity: SimpleActivity, val suggestedExtension: Stri
|
|||
private fun getInitialFilename(): String {
|
||||
val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd_HH-mm")
|
||||
val formatted = simpleDateFormat.format(Date(System.currentTimeMillis()))
|
||||
val defaultFilename = "image_${formatted}"
|
||||
val defaultFilename = "image_$formatted"
|
||||
|
||||
return if (curPath.isEmpty()) defaultFilename else curPath.getFilenameFromPath().substring(0, curPath.getFilenameFromPath().lastIndexOf("."))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue