package com.kickstarter.ui.activities;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.kickstarter.R;
import com.kickstarter.libs.BaseActivity;
import com.kickstarter.libs.qualifiers.RequiresPresenter;
import com.kickstarter.presenters.SignupPresenter;

import butterknife.ButterKnife;

@RequiresPresenter(SignupPresenter.class)
public class SignupActivity extends BaseActivity<SignupPresenter> {

  @Override
  protected  void onCreate(@Nullable final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.signup_layout);
    ButterKnife.bind(this);
  }
}

@@ -94,23 +94,276 @@
 tation.N
-ullable
+onNull;%0Aimport android.support.annotation.Nullable;%0Aimport android.util.Log;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.CompoundButton;%0Aimport android.widget.EditText;%0Aimport android.widget.Switch;%0Aimport android.widget.Toast
 ;%0A%0Aimpor
@@ -535,16 +535,41 @@
 enter;%0A%0A
+import butterknife.Bind;%0A
 import b
@@ -591,16 +591,115 @@
 erKnife;
+%0Aimport butterknife.OnCheckedChanged;%0Aimport butterknife.OnClick;%0Aimport butterknife.OnTextChanged;
 %0A%0A@Requi
@@ -801,16 +801,263 @@
 enter%3E %7B
+%0A  @Bind(R.id.full_name) EditText nameEditText;%0A  @Bind(R.id.email) EditText emailEditText;%0A  @Bind(R.id.password) EditText passwordEditText;%0A  @Bind(R.id.signup_button) Button signupButton;%0A  @Bind(R.id.newsletter_switch) Switch newsletterSwitch;
 %0A%0A  @Ove
@@ -1074,17 +1074,16 @@
 otected 
- 
 void onC
@@ -1245,15 +1245,1151 @@
 d(this);
+%0A%0A    newsletterSwitch.setChecked(true); //get initial state from presenter%0A  %7D%0A%0A  @Override%0A  public void onBackPressed() %7B%0A    super.onBackPressed();%0A    overridePendingTransition(R.anim.fade_in_slide_in_left, R.anim.slide_out_right);%0A  %7D%0A%0A  @OnTextChanged(R.id.full_name)%0A  void onNameTextChanged(@NonNull final CharSequence fullName) %7B %7D%0A%0A  @OnTextChanged(R.id.email)%0A  void onEmailTextChanged(@NonNull final CharSequence email) %7B %7D%0A%0A  @OnTextChanged(R.id.password)%0A  void onPasswordTextChange(@NonNull final CharSequence password) %7B %7D%0A%0A  @OnCheckedChanged(R.id.newsletter_switch)%0A  void onNewsletterCheckedChange(@NonNull final CompoundButton newsletterSwitch) %7B%0A    Log.d(%22gina%22, %22is checked = %22 + newsletterSwitch.isChecked());%0A  %7D%0A%0A  @OnClick(R.id.signup_button)%0A  public void signupButtonOnClick(@NonNull final View view) %7B %7D%0A%0A  public void onSuccess(final boolean forward) %7B%0A%0A  %7D%0A%0A  public void setFormEnabled(final boolean enabled) %7B signupButton.setEnabled(enabled); %7D%0A%0A  private void displayError(String message, boolean forward) %7B%0A    final Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG);%0A    toast.show();
 %0A  %7D%0A%7D%0A

set up interaction events