import android.support.annotation.NonNull;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.RecyclerView;
-import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
// a bit longer
if (tr == null) return;
- Log.d("transactions", String.format("Filling position %d with %d accounts", position,
- tr.getAccounts().size()));
+// Log.d("transactions", String.format("Filling position %d with %d accounts", position,
+// tr.getAccounts().size()));
TransactionLoader loader = new TransactionLoader();
loader.execute(new TransactionLoaderParams(tr, holder, position, boldAccountName));
@NonNull
@Override
public TransactionRowHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
- Log.d("perf", "onCreateViewHolder called");
+// Log.d("perf", "onCreateViewHolder called");
View row = LayoutInflater.from(parent.getContext())
.inflate(R.layout.transaction_list_row, parent, false);
return new TransactionRowHolder(row);
int rowIndex = 0;
for (LedgerTransactionAccount acc : tr.getAccounts()) {
- Log.d("tmp", String.format("publishing tr %d acc %s %1.2f", tr.getId(),
- acc.getAccountName(), acc.getAmount()));
+// Log.d(c.getAccountName(), acc.getAmount()));
publishProgress(new TransactionLoaderStep(p[0].holder, acc, rowIndex++,
p[0].boldAccountName));
}
accName.setText(acc.getAccountName());
accAmount.setText(acc.toString());
- Log.d("tmp", String.format("showing acc row %d: %s %1.2f", rowIndex,
- acc.getAccountName(), acc.getAmount()));
+// Log.d("tmp", String.format("showing acc row %d: %s %1.2f", rowIndex,
+// acc.getAccountName(), acc.getAmount()));
String boldAccountName = step.getBoldAccountName();
if ((boldAccountName != null) && boldAccountName.equals(acc.getAccountName())) {
holder.tableAccounts.getChildCount() - accCount);
}
- Log.d("transactions",
- String.format("Position %d fill done", step.getPosition()));
+// Log.d("transactions",
+// String.format("Position %d fill done", step.getPosition()));
}
}
}