add back button to wizard fragments

This commit is contained in:
Vincent Breitmoser
2015-01-13 19:06:38 +01:00
parent e71d620840
commit f48b8121bd
12 changed files with 66 additions and 12 deletions

View File

@@ -84,6 +84,13 @@ public class AffirmationCreateDnsStep1Fragment extends Fragment {
}
});
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
mEditUri = (EditText) view.findViewById(R.id.affirmation_create_https_uri);
mEditUri.addTextChangedListener(new TextWatcher() {

View File

@@ -84,6 +84,13 @@ public class AffirmationCreateHttpsStep1Fragment extends Fragment {
}
});
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
mEditUri = (EditText) view.findViewById(R.id.affirmation_create_https_uri);
mEditUri.addTextChangedListener(new TextWatcher() {

View File

@@ -99,6 +99,13 @@ public class AffirmationCreateHttpsStep2Fragment extends Fragment {
}
});
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
mVerifyImage = (ImageView) view.findViewById(R.id.verify_image);
mVerifyProgress = view.findViewById(R.id.verify_progress);
mVerifyStatus = (TextView) view.findViewById(R.id.verify_status);

View File

@@ -111,6 +111,13 @@ public class AffirmationCreateTwitterStep1Fragment extends Fragment {
}
});
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
mEditHandle = (EditText) view.findViewById(R.id.linked_create_twitter_handle);
mEditHandle.setText("Valodim");

View File

@@ -86,6 +86,13 @@ public class AffirmationCreateTwitterStep2Fragment extends Fragment {
}
});
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
mVerifyImage = (ImageView) view.findViewById(R.id.verify_image);
mVerifyProgress = view.findViewById(R.id.verify_progress);
mVerifyStatus = (TextView) view.findViewById(R.id.verify_status);

View File

@@ -101,6 +101,13 @@ public class AffirmationCreateTwitterStep3Fragment extends Fragment {
mEditTweetPreview = (EditText) view.findViewById(R.id.linked_create_twitter_preview);
mEditTweetPreview.setText(mFullString);
view.findViewById(R.id.back_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAffirmationWizard.loadFragment(null, null, AffirmationWizard.FRAG_ACTION_TO_LEFT);
}
});
view.findViewById(R.id.button_send).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {