Stop long polling on error
[fonbot.git] / src / ro / ieval / fonbot / FonBotMainActivity.java
index b879be0c203c1a2c90548d43f66e4cec730ce609..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));
+                                       }
                                }
                        });
                }
This page took 0.00925 seconds and 4 git commands to generate.