/** @author Martin Albedinsky */
public final class TestsConfig {

  @SuppressWarnings("unused")
  private static final String TAG = "TestsConfig";

  public static final boolean EMULATOR = Build.FINGERPRINT.startsWith("generic");
  public static final String STORAGE_BASE_PATH =
      EMULATOR ? "/storage/sdcard" : "/storage/emulated/0";
}
  @Override
  public int getItemCount() {

    int total = 0;
    if (!Build.FINGERPRINT.startsWith("generic")) {
      total = transacaoList.size();
    } else total = new TransacaoData().transacaoList().size();

    return total;
  }
  @Override
  public void onBindViewHolder(ViewHolder holder, int position) {

    // TODO: Caso esteja zerada como fazer?

    final Transacao transacao;
    if (!Build.FINGERPRINT.startsWith("generic")) {

      transacao = transacaoList.get(position);
    } else transacao = new TransacaoData().transacaoList().get(position);

    holder.Data.setText(transacao.Data);
    holder.Hora.setText(transacao.Hora);
    try {
      holder.Valor.setText(
          "R$ " + String.format("%.2f", Double.parseDouble(transacao.Valor) / 100));
    } catch (Exception ex) {
      holder.Valor.setText("R$ " + transacao.Valor);
    }
    holder.Tipo.setText("Debito a vista");
    holder.Status.setText(transacao.Status);
  }