Revert "Check for empty cardId in BarcodeSelectorActivity instead"

This reverts commit 62f7241bca.
This commit is contained in:
Sylvia van Os
2019-12-15 12:54:51 +01:00
parent 4e1fb16359
commit c83b151c08
2 changed files with 5 additions and 6 deletions

View File

@@ -90,6 +90,11 @@ class BarcodeImageWriterTask extends AsyncTask<Void, Void, Bitmap>
public Bitmap doInBackground(Void... params)
{
if (cardId.isEmpty())
{
return null;
}
MultiFormatWriter writer = new MultiFormatWriter();
BitMatrix bitMatrix;
try

View File

@@ -177,12 +177,6 @@ public class BarcodeSelectorActivity extends AppCompatActivity
}
});
if (cardId.isEmpty())
{
image.setVisibility(View.GONE);
return;
}
if(image.getHeight() == 0)
{
// The size of the ImageView is not yet available as it has not