Display the same warning when trying to pair without an IP address supplied as we do when trying to stream

This commit is contained in:
Cameron Gutman 2014-05-06 10:23:39 -04:00
parent 7a017d7b97
commit f7c33ef975

View File

@ -177,6 +177,11 @@ public class Connection extends Activity {
this.pairButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
if (Connection.this.hostText.getText().length() == 0) {
Toast.makeText(Connection.this, "Please enter the target PC's IP address in the text box at the top of the screen.", Toast.LENGTH_LONG).show();
return;
}
Toast.makeText(Connection.this, "Pairing...", Toast.LENGTH_LONG).show();
new Thread(new Runnable() {
@Override