Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
🎨 Enfeita cartão de crédito na exibição de transações
Browse files Browse the repository at this point in the history
  • Loading branch information
munirwanis committed Dec 7, 2017
1 parent 91bdfe1 commit b1ab2d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public View getView (int position, View convertView, ViewGroup parent){
if (produto.getPrice() != null) { txtPrice.setText(produto.getPrice()); }

TextView txtCartao = (TextView) convertView.findViewById(R.id.txtCartao);
if (produto.getCartao() != null) { txtCartao.setText(produto.getCartao()); }
if (produto.getCartao() != null) { txtCartao.setText("**** **** **** " + produto.getCartao()); }

return convertView;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void onClick(View v)
{
String errorMessage = validateFields();
if (errorMessage == null) {
dh.insert(tvTotal.getText().toString(), etNome.getText().toString(), creditCard.getText().toString().substring(11));
dh.insert(tvTotal.getText().toString(), etNome.getText().toString(), creditCard.getText().toString().substring(12));
AlertDialog.Builder adb = new AlertDialog.Builder(PagamentoActivity.this);
adb.setTitle("Sucesso");
adb.setMessage("Comprado com Sucesso!");
Expand Down

0 comments on commit b1ab2d6

Please sign in to comment.