diff --git a/app/src/main/java/i2p/bote/android/EmailListActivity.java b/app/src/main/java/i2p/bote/android/EmailListActivity.java
index 95cbb2a..11352af 100644
--- a/app/src/main/java/i2p/bote/android/EmailListActivity.java
+++ b/app/src/main/java/i2p/bote/android/EmailListActivity.java
@@ -376,7 +376,6 @@ public class EmailListActivity extends ActionBarActivity implements
} else if (requestCode == RUN_SETUP) {
if (resultCode == RESULT_OK) {
// TODO implement a UI tutorial?
- Toast.makeText(this, "Setup complete.", Toast.LENGTH_SHORT).show();
}
} else if (requestCode == REQUEST_START_I2P) {
if (resultCode == RESULT_OK) {
diff --git a/app/src/main/java/i2p/bote/android/intro/SetupActivity.java b/app/src/main/java/i2p/bote/android/intro/SetupActivity.java
index 05722a0..e8d0c20 100644
--- a/app/src/main/java/i2p/bote/android/intro/SetupActivity.java
+++ b/app/src/main/java/i2p/bote/android/intro/SetupActivity.java
@@ -115,9 +115,32 @@ public class SetupActivity extends ActionBarActivity {
}
private void nextPage() {
- // TODO have a "finished" page?
- getActivity().setResult(RESULT_OK);
- getActivity().finish();
+ getFragmentManager().beginTransaction()
+ .replace(R.id.container, new SetupFinishedFragment())
+ .commit();
+ }
+ }
+
+ /**
+ * Setup finished.
+ */
+ public static class SetupFinishedFragment extends Fragment {
+
+ public SetupFinishedFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_setup_finished, container, false);
+ ((Button)rootView.findViewById(R.id.button_finish)).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ getActivity().setResult(RESULT_OK);
+ getActivity().finish();
+ }
+ });
+ return rootView;
}
}
}
diff --git a/app/src/main/res/layout/fragment_setup_create_identity.xml b/app/src/main/res/layout/fragment_setup_create_identity.xml
index 0d7bc4b..8f8976c 100644
--- a/app/src/main/res/layout/fragment_setup_create_identity.xml
+++ b/app/src/main/res/layout/fragment_setup_create_identity.xml
@@ -56,17 +56,16 @@
android:layout_height="wrap_content"
android:text="@string/create_identity"
android:id="@+id/button_set_password"
- android:layout_below="@+id/textView4"
+ android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginTop="@dimen/activity_vertical_margin" />
+ android:layout_alignParentStart="true" />
diff --git a/app/src/main/res/layout/fragment_setup_finished.xml b/app/src/main/res/layout/fragment_setup_finished.xml
new file mode 100644
index 0000000..c0164ed
--- /dev/null
+++ b/app/src/main/res/layout/fragment_setup_finished.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/fragment_setup_set_password.xml b/app/src/main/res/layout/fragment_setup_set_password.xml
index d374626..94fcd1c 100644
--- a/app/src/main/res/layout/fragment_setup_set_password.xml
+++ b/app/src/main/res/layout/fragment_setup_set_password.xml
@@ -56,17 +56,16 @@
android:layout_height="wrap_content"
android:text="@string/set_password"
android:id="@+id/button_set_password"
- android:layout_below="@+id/textView4"
+ android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_marginTop="@dimen/activity_vertical_margin" />
+ android:layout_alignParentStart="true" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 8fe5d81..5e396a2 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -26,6 +26,11 @@
To receive emails, you need an Identity. This is a set of cryptographic keys that enables you to encrypt and decrypt emails.A Destination is the public part of an Identity. This is the address that you will give to your contacts so they can send emails to you. When you send emails using an Identity, its Destination is included in the From field so the recipient can reply.If you do not create an Identity now, you can do so later from the Settings menu. If you only want to send emails, you do not need an Identity, because Bote emails can be sent anonymously. However the recipient will be unable to reply to you.
+ Setup finished
+ Bote is configured and ready to use.
+ To send and receive emails, Bote needs to connect to the distributed network. You can do this from the menu.
+ While Bote is offline, you can read emails that have already been downloaded. You can also write emails and put them in the Outbox; they will be sent the next time Bote is online.
+ Go to inboxNew emailSend emailConnect to network