Skip to content
Snippets Groups Projects
Commit fbf83ff1 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#16609: Reimplement account creation activity onBackPressed method

parent 44ec162b
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ public class AccountCreationActivity extends PreferenceActivity
{
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Do you really want to create this account").setTitle("Account Creation")
.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
/* User clicked OK so do some stuff */
......@@ -181,6 +181,7 @@ public class AccountCreationActivity extends PreferenceActivity
@Override
protected void onStop() {
super.onStop();
HashMap<String, String> accountDetails = new HashMap<String, String>();
for(String s : basicDetails.getDetailKeys()) {
......@@ -228,4 +229,14 @@ public class AccountCreationActivity extends PreferenceActivity
mBound = false;
}
}
@Override
public void onBackPressed() {
AlertDialog dialog = createAlertDialog();
dialog.show();
super.onBackPressed();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment