]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/FonBotMainActivity.java
Update the POLL command's documentation
[fonbot.git] / src / ro / ieval / fonbot / FonBotMainActivity.java
index 342606a506b8186d75c4badeec4068eaa65fb251..2c2a49d2b11b0087f39fbf819ff99e811bd9a9e1 100644 (file)
@@ -173,8 +173,10 @@ public final class FonBotMainActivity extends ListActivity {
                                        resultTextView.setText(message);
                                        if(error)
                                                resultTextView.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.cross, 0, 0);
-                                       else
+                                       else {
                                                resultTextView.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.tick, 0, 0);
+                                               startService(new Intent(FonBotMainActivity.this, FonBotMainService.class));
+                                       }
                                }
                        });
                }
@@ -217,8 +219,9 @@ public final class FonBotMainActivity extends ListActivity {
        protected void onStart() {
                super.onStart();
                resultTextView.setText(logging_in);
+               resultTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
                new HttpCallExecutableRunnable("/ok", null,
-                               toNonNull(getApplicationContext()), toNonNull(updateResultCallback)).execute();
+                               toNonNull(getApplicationContext()), toNonNull(updateResultCallback), false).execute();
                connection.refreshAdapter();
        }
 
@@ -260,4 +263,4 @@ public final class FonBotMainActivity extends ListActivity {
                        return super.onOptionsItemSelected(item);
                }
        }
-}
\ No newline at end of file
+}
This page took 0.030572 seconds and 4 git commands to generate.