Skip to content

Commit

Permalink
Fix Issue openMF#891:Empty space when no staff associated and No exte…
Browse files Browse the repository at this point in the history
…rnal ID in groups
  • Loading branch information
AkshGautam authored and iamsh4shank committed Jun 18, 2020
1 parent 1aefe13 commit 6dab7f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ public void showProgressbar(boolean show) {
public void showCenterDetails(CenterWithAssociations centerWithAssociations) {
setToolbarTitle(centerWithAssociations.getName());
if (!centerWithAssociations.getActivationDate().isEmpty()) {
tvStaffName.setText(centerWithAssociations.getStaffName());
if (centerWithAssociations.getStaffName() != null) {
tvStaffName.setText(centerWithAssociations.getStaffName());
} else {
tvStaffName.setText(R.string.no_staff);
}
tvActivationDate.setText(Utils.getStringOfDate
(centerWithAssociations.getActivationDate()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ public void showGroup(Group group) {
}
setToolbarTitle(getString(R.string.group) + " - " + group.getName());
tv_fullName.setText(group.getName());
tv_externalId.setText(group.getExternalId());
if (group.getExternalId() != null) {
tv_externalId.setText(group.getExternalId());
} else {
tv_externalId.setText(R.string.not_available);
}

try {
String dateString = Utils.getStringOfDate(group.getActivationDate());
Expand Down
1 change: 1 addition & 0 deletions mifosng-android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@
<string name="surveyEmpty">This Survey is Empty</string>
<string name="centerList_account_prefix">Account No: %1$s</string>
<string name="no_staff">no staff</string>
<string name="not_available">N.A</string>
<string name="note">Notes</string>
<string name="empty_notes">Empty Notes</string>
<string name="failed_to_fetch_notes">Failed to Fetch Notes</string>
Expand Down

0 comments on commit 6dab7f4

Please sign in to comment.