1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-23 01:12:17 -05:00

ServerActivity: call trim() on identity values

This commit is contained in:
Sebastian Kaspari 2010-04-25 13:31:42 +02:00
parent c414b737e2
commit 3f442cd8b4

View File

@ -304,9 +304,9 @@ public class AddServerActivity extends Activity implements OnClickListener
*/
private Identity getIdentityFromView()
{
String nickname = ((EditText) findViewById(R.id.nickname)).getText().toString();
String ident = ((EditText) findViewById(R.id.ident)).getText().toString();
String realname = ((EditText) findViewById(R.id.realname)).getText().toString();
String nickname = ((EditText) findViewById(R.id.nickname)).getText().toString().trim();
String ident = ((EditText) findViewById(R.id.ident)).getText().toString().trim();
String realname = ((EditText) findViewById(R.id.realname)).getText().toString().trim();
Identity identity = new Identity();
identity.setNickname(nickname);