Skip to content

Commit

Permalink
- Codacy fix NavigationListener.java
Browse files Browse the repository at this point in the history
- Sleeping under LLITN subtext made to sentence case
  • Loading branch information
rkodev committed Jun 20, 2019
1 parent 6037227 commit 0b4500d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.smartregister.chw.activity.AncRegisterActivity;
import org.smartregister.chw.activity.ChildRegisterActivity;
import org.smartregister.chw.activity.FamilyRegisterActivity;
import org.smartregister.chw.activity.MalariaRegisterActivity;
import org.smartregister.chw.adapter.NavigationAdapter;
import org.smartregister.chw.util.Constants;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public BaseAncHomeVisitAction.Status evaluateStatusOnPayload() {

String value = getValue(jsonObject, "sleeping_llitn");

ba.setSubTitle(value.trim().toUpperCase());
ba.setSubTitle(StringUtils.capitalize(value.trim().toLowerCase()));

if (value.equalsIgnoreCase("Yes")) {
return BaseAncHomeVisitAction.Status.COMPLETED;
Expand Down

0 comments on commit 0b4500d

Please sign in to comment.