mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 08:52:18 -05:00
Disable input if not connected
This commit is contained in:
parent
ac48ee9aae
commit
9efb7b8e4a
@ -95,7 +95,13 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
|
||||
|
||||
((TextView) findViewById(R.id.title)).setText(server.getTitle());
|
||||
((ImageView) findViewById(R.id.status)).setImageResource(server.getStatusIcon());
|
||||
((EditText) findViewById(R.id.input)).setOnKeyListener(this);
|
||||
|
||||
EditText input = (EditText) findViewById(R.id.input);
|
||||
input.setOnKeyListener(this);
|
||||
|
||||
if (!server.isConnected()) {
|
||||
input.setEnabled(false);
|
||||
}
|
||||
|
||||
deck = (Gallery) findViewById(R.id.deck);
|
||||
deck.setOnItemSelectedListener(this);
|
||||
|
Loading…
Reference in New Issue
Block a user