Breno Roriz
Newbie
I have an app with a registration in steps. What I want it to do is that after a step appears a popup to accept the terms of use of the application and when accepting the user continue the registration steps.
Below is the code exactly at the point where the terms of use would have to appear.
Below is the code exactly at the point where the terms of use would have to appear.
Code:
} else if (mCurrentStep == STEP3_REGISTER_PT2) {
boolean hasCep = mCepEditText.length() == 9;
boolean hasStreet = mAddressEditText.length() > 0;
boolean hasNumber = mNumberEditText.length() > 0;
boolean hasNeighborhood = mNeighborhoodEditText.length() > 0;
boolean hasCity = mCityEditText.length() > 0;
boolean hasState = ((String) mStateSpinner.getSelectedItem()).length() > 0;
if (hasStreet && hasNumber && hasNeighborhood && hasCity && hasState) {
mContinue2Button.setEnabled(true);
} else {
mContinue2Button.setEnabled(false);
}
}