Skip to content

Commit d235e5a

Browse files
GearGitashishkumar468
authored andcommitted
Fixes commons-app#3327: Trim whitespaces from title on upload (commons-app#3348)
Trim WhiteSpaces from Image-Title while upload
1 parent d86fe5d commit d235e5a

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/fr/free/nrw/commons/upload

1 file changed

+2
-2
lines changed

app/src/main/java/fr/free/nrw/commons/upload/Title.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Title {
1414
}
1515

1616
fun setTitleText(titleText: String?) {
17-
this.titleText = titleText
17+
this.titleText=titleText?.trim()
1818
if (!TextUtils.isEmpty(titleText)) {
1919
isSet = true
2020
}
@@ -26,4 +26,4 @@ class Title {
2626
fun getTitleText(): String? {
2727
return titleText
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)