in app/src/main/java/org/apache/fineract/ui/online/identification/createidentification/identificationactivity/CreateIdentificationActivity.java [52:85]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getActivityComponent().inject(this);
setContentView(R.layout.activity_create_identification);
ButterKnife.bind(this);
createIdentificationPresenter.attachView(this);
identification = new Identification();
customerIdentifier = getIntent().getExtras().getString(ConstantKeys.CUSTOMER_IDENTIFIER);
action = (Action) getIntent().getSerializableExtra(ConstantKeys.IDENTIFICATION_ACTION);
identification = getIntent().getExtras().getParcelable(ConstantKeys.IDENTIFICATION_CARD);
if (savedInstanceState != null) {
currentPosition = savedInstanceState.getInt(CURRENT_STEP_POSITION);
}
stepAdapter = new CreateIdentificationStepAdapter(
getSupportFragmentManager(), this, action, identification);
stepperLayout.setAdapter(stepAdapter, currentPosition);
stepperLayout.setListener(this);
stepperLayout.setOffscreenPageLimit(stepAdapter.getCount());
switch (action) {
case CREATE:
setToolbarTitle(getString(R.string.create_new_identification));
break;
case EDIT:
setToolbarTitle(getString(R.string.edit_identification));
break;
}
showBackButton();
}