diff options
author | Nathan Lasseter <nathan@4574.co.uk> | 2013-05-22 17:28:03 +0100 |
---|---|---|
committer | Nathan Lasseter <nathan@4574.co.uk> | 2013-05-22 17:28:03 +0100 |
commit | eab3b658b2e49cfd57d2eb3611eaba737b14e550 (patch) | |
tree | 312e7418c8b34bb363807c230e54374de0e25523 /src/user4574 | |
parent | 5d14f1cc96a7ac749cdcba72a14d5f2825df37a9 (diff) |
Should onResume nicely if connection was dropped.
Diffstat (limited to 'src/user4574')
-rw-r--r-- | src/user4574/texttransport/Start.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user4574/texttransport/Start.java b/src/user4574/texttransport/Start.java index 127a4e8..799a036 100644 --- a/src/user4574/texttransport/Start.java +++ b/src/user4574/texttransport/Start.java @@ -41,6 +41,14 @@ public class Start extends Activity { rg = (RadioGroup) findViewById(R.id.protocol); } + protected void onResume() { + super.onResume(); + if (client == null || !client.isConnected()) { + ent.setEnabled(true); + ent.setText(""); + } + } + class ConnectListener implements OnClickListener { public void onClick(View arg0) { if (client != null && client.isConnected()) { |