protected void onCreate()

in app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanapplication/loanactivity/LoanApplicationActivity.java [61:96]


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getActivityComponent().inject(this);
        setContentView(R.layout.activity_loan_application);
        ButterKnife.bind(this);
        loanApplicationPresenter.attachView(this);
        creditWorthinessSnapshots = new ArrayList<>();
        loanAccount = new LoanAccount();
        loanParameters = new LoanParameters();
        loanApplicationAction = (LoanApplicationAction) getIntent()
                .getSerializableExtra(ConstantKeys.LOAN_APPLICATION_ACTION);
        customerIdentifier = getIntent().getExtras().getString(ConstantKeys.CUSTOMER_IDENTIFIER);
        switch (loanApplicationAction) {
            case CREATE:
                setToolbarTitle(getString(R.string.create_new_loan));
                break;
            case EDIT:
                setToolbarTitle(getString(R.string.edit_loan));
                caseIdentifier = getIntent().getExtras().getString(ConstantKeys.CASE_IDENTIFIER);
                loanAccount = getIntent().getExtras().getParcelable(ConstantKeys.LOAN_ACCOUNT);
                if (loanAccount != null) {
                    loanParameters = loanAccount.getLoanParameters();
                }
        }

        if (savedInstanceState != null) {
            currentPosition = savedInstanceState.getInt(CURRENT_STEP_POSITION);
        }
        LoanApplicationStepAdapter stepAdapter = new LoanApplicationStepAdapter(
                getSupportFragmentManager(), this, loanAccount, loanApplicationAction);
        stepperLayout.setAdapter(stepAdapter, currentPosition);
        stepperLayout.setListener(this);
        stepperLayout.setOffscreenPageLimit(stepAdapter.getCount());

        showBackButton();
    }