Skip to content

Commit

Permalink
Fixes #3327: Trim whitespaces from title on upload (#3348)
Browse files Browse the repository at this point in the history
Trim WhiteSpaces from Image-Title while upload
  • Loading branch information
GearGit authored and ashishkumar468 committed Jan 28, 2020
1 parent d86fe5d commit d235e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/fr/free/nrw/commons/upload/Title.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Title {
}

fun setTitleText(titleText: String?) {
this.titleText = titleText
this.titleText=titleText?.trim()
if (!TextUtils.isEmpty(titleText)) {
isSet = true
}
Expand All @@ -26,4 +26,4 @@ class Title {
fun getTitleText(): String? {
return titleText
}
}
}

0 comments on commit d235e5a

Please sign in to comment.