File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/fr/free/nrw/commons/upload Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ public boolean onOptionsItemSelected(MenuItem item) {
7474 //What happens when the 'submit' icon is tapped
7575 case R .id .menu_upload_single :
7676
77- if (titleEdit .getText ().toString ().isEmpty ()) {
77+ if (titleEdit .getText ().toString ().trim (). isEmpty ()) {
7878 Toast .makeText (getContext (), R .string .add_title_toast , Toast .LENGTH_LONG ).show ();
7979 return false ;
8080 }
8181
82- String title = titleEdit .getText ().toString ();
83- String desc = descEdit .getText ().toString ();
82+ String title = titleEdit .getText ().toString (). trim () ;
83+ String desc = descEdit .getText ().toString (). trim () ;
8484
8585 //Save the title/desc in short-lived cache so next time this fragment is loaded, we can access these
8686 prefs .edit ()
You can’t perform that action at this time.
0 commit comments