Skip to content

Commit

Permalink
style: Incorrect error message is displayed in the Centers activity (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashG97 authored and ishan1604 committed Mar 14, 2017
1 parent 5b61e1e commit 8c97510
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public void onDatePicked(String date) {
public void showFetchingError() {
rv_centers.setVisibility(View.GONE);
rlError.setVisibility(View.VISIBLE);
String errorMessage = getStringMessage(R.string.failed_to_fetch_groups)
String errorMessage = getStringMessage(R.string.failed_to_fetch_centers)
+ getStringMessage(R.string.new_line) + getStringMessage(R.string.click_to_refresh);
mNoCenterText.setText(errorMessage);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void onCompleted() {
public void onError(Throwable e) {
getMvpView().showProgressbar(false);
if (loadmore) {
getMvpView().showMessage(R.string.failed_to_fetch_center);
getMvpView().showMessage(R.string.failed_to_fetch_centers);
} else {
getMvpView().showFetchingError();
}
Expand Down
2 changes: 1 addition & 1 deletion mifosng-android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
<string name="failed_to_add_savings_account">Failed to add SavingsAccount</string>
<string name="failed_to_fetch_documents">Failed to fetch documents</string>
<string name="failed_to_fetch_groups">Failed to Fetch Groups</string>
<string name="failed_to_fetch_center">Failed to Fetch Center</string>
<string name="failed_to_fetch_centers">Failed to Fetch Centers</string>
<string name="failed_to_fetch_Group_and_meeting">Failed to Fetch Group and Meeting</string>
<string name="failed_to_fetch_group_and_account">Failed to fetch group and accounts</string>
<string name="failed_fetch_document">Failed to fetch document</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void testLoadMoreCenters() {

verify(mCenterListMvpView).showProgressbar(true);
verify(mCenterListMvpView).showMoreCenters(centerPage.getPageItems());
verify(mCenterListMvpView, never()).showMessage(R.string.failed_to_fetch_center);
verify(mCenterListMvpView, never()).showMessage(R.string.failed_to_fetch_centers);
verify(mCenterListMvpView).showProgressbar(false);
}

Expand All @@ -114,7 +114,7 @@ public void testLoadMoreCentersFails() {
centerListPresenter.loadCenters(true, offset);

verify(mCenterListMvpView).showProgressbar(true);
verify(mCenterListMvpView).showMessage(R.string.failed_to_fetch_center);
verify(mCenterListMvpView).showMessage(R.string.failed_to_fetch_centers);
verify(mCenterListMvpView, never()).showFetchingError();
verify(mCenterListMvpView).showProgressbar(false);
}
Expand Down

0 comments on commit 8c97510

Please sign in to comment.