aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ui/EditAccount.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-04 22:26:46 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-04 22:26:46 +0100
commitc01f2cedb6ae599c2ddc4c52b5176ca07275283f (patch)
treefe529e2e29467f9aced1bdf681ac0d423b1bc067 /src/de/gultsch/chat/ui/EditAccount.java
parent4fd8620c6cc1ca88c4496671e6e59c40aba93019 (diff)
delete account code now accessible again
Diffstat (limited to 'src/de/gultsch/chat/ui/EditAccount.java')
-rw-r--r--src/de/gultsch/chat/ui/EditAccount.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/de/gultsch/chat/ui/EditAccount.java b/src/de/gultsch/chat/ui/EditAccount.java
index f8d70981..4da89b7f 100644
--- a/src/de/gultsch/chat/ui/EditAccount.java
+++ b/src/de/gultsch/chat/ui/EditAccount.java
@@ -29,8 +29,6 @@ public class EditAccount extends DialogFragment {
public interface EditAccountListener {
public void onAccountEdited(Account account);
-
- public void onAccountDelete(Account account);
}
protected EditAccountListener listener = null;
@@ -92,27 +90,6 @@ public class EditAccount extends DialogFragment {
usernameText.setText(account.getUsername());
serverText.setText(account.getServer());
okButtonDesc = "Edit";
- /*builder.setNegativeButton("Delete Account", new OnClickListener() {
-
- @Override
- public void onClick(DialogInterface dialog, int which) {
- AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
- builder.setTitle("Are you sure?");
- builder.setIconAttribute(android.R.attr.alertDialogIcon);
- builder.setMessage("If you delete your account your entire conversation history will be lost");
- builder.setPositiveButton("Delete", new OnClickListener() {
-
- @Override
- public void onClick(DialogInterface dialog, int which) {
- if (listener!=null) {
- listener.onAccountDelete(account);
- }
- }
- });
- builder.setNegativeButton("Cancel",null);
- builder.create().show();
- }
- });*/
} else {
builder.setTitle("Add account");
okButtonDesc = "Add";