getResources().getDisplayMetrics()));
}
public void resetTransactionFromMenu(MenuItem item) {
- resetForm();
+ listAdapter.reset();
}
@Override
public void done(String error) {
progress.setVisibility(View.INVISIBLE);
debug("visuals", "hiding progress");
- if (error == null) resetForm();
+ if (error == null)
+ listAdapter.reset();
else Snackbar.make(list, error, BaseTransientBottomBar.LENGTH_LONG)
.show();
viewModel.checkTransactionSubmittable(listAdapter);
}
- private void resetForm() {
- listAdapter.reset();
- }
private class AsyncCrasher extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... voids) {