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));
+ }
}
});
}
protected void onStart() {
super.onStart();
resultTextView.setText(logging_in);
+ resultTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
new HttpCallExecutableRunnable("/ok", null,
toNonNull(getApplicationContext()), toNonNull(updateResultCallback), false).execute();
connection.refreshAdapter();
return super.onOptionsItemSelected(item);
}
}
-}
\ No newline at end of file
+}