From f7c33ef975fae3feff17259c87ead1a3afb64904 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 6 May 2014 10:23:39 -0400 Subject: [PATCH] Display the same warning when trying to pair without an IP address supplied as we do when trying to stream --- src/com/limelight/Connection.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/limelight/Connection.java b/src/com/limelight/Connection.java index ca11e89e..57288c36 100644 --- a/src/com/limelight/Connection.java +++ b/src/com/limelight/Connection.java @@ -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