on connect failure reenable buttons

This commit is contained in:
Dan Ballard 2017-09-07 08:13:10 -07:00
parent fc279e8062
commit 9a1d8df640
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ public class ConnectActivity extends AppCompatActivity {
connectSpinner.setVisibility(View.INVISIBLE); connectSpinner.setVisibility(View.INVISIBLE);
if (exception != "") { if (exception != "") {
connectStatusText.setText("ERROR connecting: " + exception); connectStatusText.setText("ERROR connecting: " + exception);
connectButton.setEnabled(true);
regenButton.setEnabled(true);
} else { } else {
connectStatusText.setText(""); connectStatusText.setText("");
// TODO: Open OD control activity // TODO: Open OD control activity