Skip to content

Commit

Permalink
fix: Wrong Display saying Charges not found even when charges are pre…
Browse files Browse the repository at this point in the history
…sent (openMF#1221)
  • Loading branch information
rchtgpt authored Feb 20, 2020
1 parent 798ed51 commit 20b7382
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ public void onChargeCreatedFailure(String errorMessage) {

@Override
public void showEmptyCharges() {
ll_error.setVisibility(View.VISIBLE);
mNoChargesText.setText(getResources().getString(R.string.message_no_charges_available));
mNoChargesIcon.setImageResource(R.drawable.ic_assignment_turned_in_black_24dp);
if (mChargesNameListAdapter == null || mChargesNameListAdapter.getItemCount() == 0) {
ll_error.setVisibility(View.VISIBLE);
mNoChargesText.setText(getResources().getString(R.string.message_no_charges_available));
mNoChargesIcon.setImageResource(R.drawable.ic_assignment_turned_in_black_24dp);
}
}

@Override
Expand Down

0 comments on commit 20b7382

Please sign in to comment.