Skip to content

Commit

Permalink
Erase previously read information from chip (card type and data) (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
myadzel authored Dec 3, 2024
1 parent 7d50027 commit 228eb3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/org/sportiduino/app/FragmentReadCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class ReadCardTask extends AsyncTask<Void, Void, Boolean> {

@Override
protected void onPreExecute() {
binding.textViewTagType.setText("");
binding.textViewInfo.setVisibility(View.GONE);
binding.textViewInfo.setText("");
binding.textViewNfcInfo.setText(R.string.reading_card_dont_remove_it);
}

Expand All @@ -103,8 +106,6 @@ protected void onPostExecute(Boolean result) {
binding.textViewInfo.setText(card.parseData(buffer));
binding.textViewNfcInfo.setText(Util.ok(getString(R.string.card_read_successfully), currentView));
} else {
binding.textViewTagType.setText("");
binding.textViewInfo.setVisibility(View.GONE);
binding.textViewNfcInfo.setText(Util.error(getString(R.string.reading_card_failed), currentView));
}
}
Expand Down

0 comments on commit 228eb3c

Please sign in to comment.