package se.leap.bitmaskclient; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import butterknife.OnClick; import static android.view.View.VISIBLE; /** * Create an account with a provider */ public class SignupActivity extends ProviderCredentialsBaseActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setProviderHeaderLogo(R.drawable.logo); setProviderHeaderText(R.string.create_profile); setProgressbarText(R.string.signing_up); setButtonText(R.string.signup_button); passwordVerificationField.setVisibility(VISIBLE); passwordVerificationError.setVisibility(VISIBLE); } @Override @OnClick(R.id.button) void handleButton() { super.handleButton(); if (getPassword().equals(getPasswordVerification())) { signUp(getUsername(), getPassword()); } } }