Skip to content

Commit

Permalink
MI | add Mother register #6
Browse files Browse the repository at this point in the history
Signed-off-by: mib-iqbal <[email protected]>
  • Loading branch information
mib-iqbal committed Nov 16, 2017
1 parent 67fdde2 commit 8aa37f4
Show file tree
Hide file tree
Showing 13 changed files with 1,554 additions and 19 deletions.
2 changes: 1 addition & 1 deletion opensrp-gizi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
multiDexEnabled true
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
buildConfigField "boolean", "TIME_CHECK", "false"
resValue "string", 'opensrp_url', '"http://118.91.130.18:9090/opensrp"'
resValue "string", 'opensrp_url', '"http://192.168.1.253:8080/opensrp"'
}

dexOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected void onCreation() {
private void setupViews() {
findViewById(R.id.btn_gizi_register).setOnClickListener(onRegisterStartListener);


findViewById(R.id.btn_gizi_ibu_register).setOnClickListener(onRegisterStartListener);
findViewById(R.id.btn_reporting).setOnClickListener(onButtonsClickListener);


Expand Down Expand Up @@ -364,7 +364,9 @@ public void onClick(View view) {
case R.id.btn_gizi_register:
navigationController.startChildSmartRegistry();
break;

case R.id.btn_gizi_ibu_register:
navigationController.startECSmartRegistry();
break;


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//import org.ei.opensrp.gizi.test.TestSmartRegisterActivity;
import org.smartregister.gizi.R;
import org.smartregister.gizi.activity.GiziSmartRegisterActivity;
import org.smartregister.gizi.giziIbu.IbuSmartRegisterActivity;
import org.smartregister.view.controller.ANMController;
import org.json.JSONObject;

Expand All @@ -33,14 +34,7 @@ public GiziNavigationController(Activity activity, ANMController anmController,

@Override
public void startECSmartRegistry() {
// activity.startActivity(new Intent(activity, TestSmartRegisterActivity.class));
/// activity.startActivity(new Intent(activity, HouseHoldSmartRegisterActivity.class));
SharedPreferences sharedPreferences = getDefaultSharedPreferences(this.activity);

if(sharedPreferences.getBoolean("firstlauch",true)) {
sharedPreferences.edit().putBoolean("firstlauch",false).commit();
// activity.startActivity(new Intent(activity, tutorialCircleViewFlow.class));
}
activity.startActivity(new Intent(activity, IbuSmartRegisterActivity.class));

}
@Override
Expand Down
Loading

0 comments on commit 8aa37f4

Please sign in to comment.