AddServerActivity: Disable auto-correction for the hostname field. Fixes #99.

This commit is contained in:
Sebastian Kaspari 2012-01-21 10:33:03 +01:00
parent 6ff79ee50d
commit 8386f4a1ef
1 changed files with 11 additions and 5 deletions

View File

@ -126,6 +126,12 @@ public class AddServerActivity extends Activity implements OnClickListener
}
}
// Disable suggestions for host name
if (android.os.Build.VERSION.SDK_INT >= 5) {
EditText serverHostname = (EditText) findViewById(R.id.host);
serverHostname.setInputType(0x80000);
}
Uri uri = getIntent().getData();
if (uri != null && uri.getScheme().equals("irc")) {
// handling an irc:// uri