Skip to content

Commit

Permalink
Fix Issue openMF#891:Empty space when no staff associated
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshGautam committed Feb 15, 2018
1 parent 8f74dd9 commit a4d8ca0
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit a4d8ca0

Please sign in to comment.