@Override
 protected void onResume() {
   _ltManager.subscribe(ltSubscriber);
   if (_captcha == null) {
     reCaptcha();
   }
   updateUi();
   super.onResume();
 }
 private void updateUi() {
   if (!isAdded()) {
     return;
   }
   TraderInfo info = _ltManager.getCachedTraderInfo();
   View viTraderInfo = findViewById(R.id.flTraderInfo);
   if (!_ltManager.hasLocalTraderAccount()) {
     findViewById(R.id.svNoAccount).setVisibility(View.VISIBLE);
     findViewById(R.id.pbWait).setVisibility(View.GONE);
     viTraderInfo.setVisibility(View.GONE);
   } else if (info == null) {
     findViewById(R.id.svNoAccount).setVisibility(View.GONE);
     findViewById(R.id.pbWait).setVisibility(View.VISIBLE);
     viTraderInfo.setVisibility(View.GONE);
   } else {
     findViewById(R.id.svNoAccount).setVisibility(View.GONE);
     findViewById(R.id.pbWait).setVisibility(View.GONE);
     viTraderInfo.setVisibility(View.VISIBLE);
     FragmentTransaction ft = getFragmentManager().beginTransaction();
     ft.replace(R.id.flTraderInfo, TraderInfoFragment.createInstance(info));
     ft.commit();
   }
 }
 @Override
 protected void onPause() {
   _ltManager.unsubscribe(ltSubscriber);
   super.onPause();
 }
 private void reCaptcha() {
   _captcha = null;
   _numberEntry.setEntry(null, 0);
   _ltManager.makeRequest(new GetCaptcha());
   updateUi();
 }
 @Override
 public void onClick(View arg0) {
   _isSolving = true;
   updateUi();
   _ltManager.makeRequest(new SolveCaptcha(_tvSolution.getText().toString()));
 }
 @Override
 public void onResume() {
   updateUi();
   _ltManager.subscribe(ltSubscriber);
   super.onResume();
 }
 @Override
 public void onPause() {
   _ltManager.unsubscribe(ltSubscriber);
   super.onPause();
 }