Skip to content

Commit

Permalink
fixed codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
rkodev committed Jun 11, 2019
1 parent 554c348 commit f77ddc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class AncMemberProfileActivity extends BaseAncMemberProfileActivity {
private static String familyName;
private static FamilyProfileContract.Interactor profileInteractor;
private static FamilyProfileContract.Model profileModel;
private AncMemberProfilePresenter ancMemberProfilePresenter;

public static void startMe(Activity activity, MemberObject memberObject) {
baseEntityId = memberObject.getBaseEntityId();
Expand Down Expand Up @@ -136,8 +135,7 @@ public void startFormActivity(JSONObject jsonForm) {
}

public AncMemberProfilePresenter ancMemberProfilePresenter() {
ancMemberProfilePresenter = new AncMemberProfilePresenter(this, MEMBER_OBJECT);
return ancMemberProfilePresenter;
return new AncMemberProfilePresenter(this, MEMBER_OBJECT);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void startFormActivity(JSONObject jsonForm) {
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
if (jsonObject.getString(org.smartregister.chw.util.JsonFormUtils.KEY).equalsIgnoreCase(Constants.JsonAssets.FAMILY_MEMBER.PHONE_NUMBER)) {
jsonObject.put(org.smartregister.family.util.JsonFormUtils.VALUE, phone_number);
jsonObject.put(JsonFormUtils.VALUE, phone_number);
}
}
Intent intent = new Intent(this, Utils.metadata().familyMemberFormActivity);
Expand Down

0 comments on commit f77ddc2

Please sign in to comment.