Program: 33031
Project: 33031
Buggy source:
/** 
 * Use this method to fetch and inflate all loan and savings accounts of the client and inflate them in the fragment
 */
public void inflateClientsAccounts(){
  safeUIBlockingUtility.safelyBlockUI();
  API.clientAccountsService.getAllAccountsOfClient(clientId,new Callback<ClientAccounts>(){
    @Override public void success(    final ClientAccounts clientAccounts,    Response response){
      if (!isAdded()) {
        return;
      }
      final String loanAccountsStringResource=getResources().getString(R.string.loanAccounts);
      final String savingsAccountsStringResource=getResources().getString(R.string.savingAccounts);
      final Iconify.IconValue listOpenIcon=Iconify.IconValue.fa_minus_circle;
      final Iconify.IconValue listClosedIcon=Iconify.IconValue.fa_plus_circle;
      tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
      tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
      Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
      if (clientAccounts.getLoanAccounts().size() > 0) {
        LoanAccountsListAdapter loanAccountsListAdapter=new LoanAccountsListAdapter(getActivity().getApplicationContext(),clientAccounts.getLoanAccounts());
        tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
        tv_toggle_loan_accounts.setText(loanAccountsStringResource);
        tv_count_loan_accounts.setText(String.valueOf(clientAccounts.getLoanAccounts().size()));
        tv_toggle_loan_accounts.setOnClickListener(new View.OnClickListener(){
          @Override public void onClick(          View view){
            if (!isLoanAccountsListOpen) {
              isLoanAccountsListOpen=true;
              tv_toggle_loan_accounts_icon.setText(listOpenIcon.formattedName());
              isSavingsAccountsListOpen=false;
              tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_savings.setVisibility(View.GONE);
              lv_accounts_loans.setVisibility(View.VISIBLE);
            }
 else {
              isLoanAccountsListOpen=false;
              tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_loans.setVisibility(View.GONE);
            }
            Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
          }
        }
);
        lv_accounts_loans.setAdapter(loanAccountsListAdapter);
        lv_accounts_loans.setOnItemClickListener(new AdapterView.OnItemClickListener(){
          @Override public void onItemClick(          AdapterView<?> adapterView,          View view,          int i,          long l){
            mListener.loadLoanAccountSummary(clientAccounts.getLoanAccounts().get(i).getId());
          }
        }
);
        lv_accounts_loans.setOnTouchListener(new View.OnTouchListener(){
          @Override public boolean onTouch(          View view,          MotionEvent motionEvent){
            view.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
          }
        }
);
      }
      if (clientAccounts.getSavingsAccounts().size() > 0) {
        SavingsAccountsListAdapter savingsAccountsListAdapter=new SavingsAccountsListAdapter(getActivity().getApplicationContext(),clientAccounts.getSavingsAccounts());
        tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
        tv_toggle_savings_accounts.setText(savingsAccountsStringResource);
        tv_count_savings_accounts.setText(String.valueOf(clientAccounts.getSavingsAccounts().size()));
        tv_toggle_savings_accounts.setOnClickListener(new View.OnClickListener(){
          @Override public void onClick(          View view){
            if (!isSavingsAccountsListOpen) {
              isSavingsAccountsListOpen=true;
              tv_toggle_savings_accounts_icon.setText(listOpenIcon.formattedName());
              isLoanAccountsListOpen=false;
              tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_loans.setVisibility(View.GONE);
              lv_accounts_savings.setVisibility(View.VISIBLE);
            }
 else {
              isSavingsAccountsListOpen=false;
              tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_savings.setVisibility(View.GONE);
            }
            Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
          }
        }
);
        lv_accounts_savings.setAdapter(savingsAccountsListAdapter);
        lv_accounts_savings.setOnItemClickListener(new AdapterView.OnItemClickListener(){
          @Override public void onItemClick(          AdapterView<?> adapterView,          View view,          int i,          long l){
            mListener.loadSavingsAccountSummary(clientAccounts.getSavingsAccounts().get(i).getId());
          }
        }
);
        lv_accounts_savings.setOnTouchListener(new View.OnTouchListener(){
          @Override public boolean onTouch(          View view,          MotionEvent motionEvent){
            view.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
          }
        }
);
      }
      safeUIBlockingUtility.safelyUnBlockUI();
      inflateDataTablesList();
    }
    @Override public void failure(    RetrofitError retrofitError){
      Toast.makeText(activity,"String_Node_Str",Toast.LENGTH_SHORT).show();
      safeUIBlockingUtility.safelyUnBlockUI();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Use this method to fetch and inflate all loan and savings accounts of the client and inflate them in the fragment
 */
public void inflateClientsAccounts(){
  safeUIBlockingUtility.safelyBlockUI();
  API.clientAccountsService.getAllAccountsOfClient(clientId,new Callback<ClientAccounts>(){
    @Override public void success(    final ClientAccounts clientAccounts,    Response response){
      if (!isAdded()) {
        return;
      }
      final String loanAccountsStringResource=getResources().getString(R.string.loanAccounts);
      final String savingsAccountsStringResource=getResources().getString(R.string.savingAccounts);
      final Iconify.IconValue listOpenIcon=Iconify.IconValue.fa_minus_circle;
      final Iconify.IconValue listClosedIcon=Iconify.IconValue.fa_plus_circle;
      tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
      tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
      Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
      if (clientAccounts.getLoanAccounts().size() > 0) {
        LoanAccountsListAdapter loanAccountsListAdapter=new LoanAccountsListAdapter(getActivity().getApplicationContext(),clientAccounts.getLoanAccounts());
        tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
        tv_toggle_loan_accounts.setText(loanAccountsStringResource);
        tv_count_loan_accounts.setText(String.valueOf(clientAccounts.getLoanAccounts().size()));
        tv_toggle_loan_accounts.setOnClickListener(new View.OnClickListener(){
          @Override public void onClick(          View view){
            if (!isLoanAccountsListOpen) {
              isLoanAccountsListOpen=true;
              tv_toggle_loan_accounts_icon.setText(listOpenIcon.formattedName());
              isSavingsAccountsListOpen=false;
              tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_savings.setVisibility(View.GONE);
              lv_accounts_loans.setVisibility(View.VISIBLE);
            }
 else {
              isLoanAccountsListOpen=false;
              tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_loans.setVisibility(View.GONE);
            }
            Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
          }
        }
);
        lv_accounts_loans.setAdapter(loanAccountsListAdapter);
        lv_accounts_loans.setOnItemClickListener(new AdapterView.OnItemClickListener(){
          @Override public void onItemClick(          AdapterView<?> adapterView,          View view,          int i,          long l){
            mListener.loadLoanAccountSummary(clientAccounts.getLoanAccounts().get(i).getId());
          }
        }
);
        lv_accounts_loans.setOnTouchListener(new View.OnTouchListener(){
          @Override public boolean onTouch(          View view,          MotionEvent motionEvent){
            view.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
          }
        }
);
      }
      if (clientAccounts.getSavingsAccounts().size() > 0) {
        SavingsAccountsListAdapter savingsAccountsListAdapter=new SavingsAccountsListAdapter(getActivity().getApplicationContext(),clientAccounts.getSavingsAccounts());
        tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
        tv_toggle_savings_accounts.setText(savingsAccountsStringResource);
        tv_count_savings_accounts.setText(String.valueOf(clientAccounts.getSavingsAccounts().size()));
        tv_toggle_savings_accounts.setOnClickListener(new View.OnClickListener(){
          @Override public void onClick(          View view){
            if (!isSavingsAccountsListOpen) {
              isSavingsAccountsListOpen=true;
              tv_toggle_savings_accounts_icon.setText(listOpenIcon.formattedName());
              isLoanAccountsListOpen=false;
              tv_toggle_loan_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_loans.setVisibility(View.GONE);
              lv_accounts_savings.setVisibility(View.VISIBLE);
            }
 else {
              isSavingsAccountsListOpen=false;
              tv_toggle_savings_accounts_icon.setText(listClosedIcon.formattedName());
              lv_accounts_savings.setVisibility(View.GONE);
            }
            Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
          }
        }
);
        lv_accounts_savings.setAdapter(savingsAccountsListAdapter);
        lv_accounts_savings.setOnItemClickListener(new AdapterView.OnItemClickListener(){
          @Override public void onItemClick(          AdapterView<?> adapterView,          View view,          int i,          long l){
            mListener.loadSavingsAccountSummary(clientAccounts.getSavingsAccounts().get(i).getId());
          }
        }
);
        lv_accounts_savings.setOnTouchListener(new View.OnTouchListener(){
          @Override public boolean onTouch(          View view,          MotionEvent motionEvent){
            view.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
          }
        }
);
      }
      Iconify.addIcons(tv_toggle_loan_accounts_icon,tv_toggle_savings_accounts_icon);
      safeUIBlockingUtility.safelyUnBlockUI();
      inflateDataTablesList();
    }
    @Override public void failure(    RetrofitError retrofitError){
      Toast.makeText(activity,"String_Node_Str",Toast.LENGTH_SHORT).show();
      safeUIBlockingUtility.safelyUnBlockUI();
    }
  }
);
}