mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Add a toast if the IP field isn't filled
This commit is contained in:
parent
669691d8e8
commit
ceb957e7f3
@ -163,6 +163,11 @@ public class Connection extends Activity {
|
|||||||
this.statusButton.setOnClickListener(new OnClickListener() {
|
this.statusButton.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View arg0) {
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
Intent intent = new Intent(Connection.this, Game.class);
|
Intent intent = new Intent(Connection.this, Game.class);
|
||||||
intent.putExtra("host", Connection.this.hostText.getText().toString());
|
intent.putExtra("host", Connection.this.hostText.getText().toString());
|
||||||
Connection.this.startActivity(intent);
|
Connection.this.startActivity(intent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user