Fixes #3327: Trim whitespaces from title on upload (#3348)

Trim WhiteSpaces from Image-Title while upload
This commit is contained in:
Somanshu 2020-01-28 10:15:09 +05:30 committed by Ashish Kumar
parent d86fe5d8c5
commit d235e5a85b

View file

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