summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/user4574/texttransport/Start.java8
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()) {