diff options
author | Thialfihar <thialfihar@gmail.com> | 2010-04-19 02:12:13 +0000 |
---|---|---|
committer | Thialfihar <thialfihar@gmail.com> | 2010-04-19 02:12:13 +0000 |
commit | d5c5a2c43b3ffda4183cf8d57eb585613ed4906e (patch) | |
tree | a7b0c2130239c8fb5a7c427e10b100e0ffaba167 /src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java | |
parent | 09741b02863b138846f3747a19dc40a3518b9aa0 (diff) | |
download | open-keychain-d5c5a2c43b3ffda4183cf8d57eb585613ed4906e.tar.gz open-keychain-d5c5a2c43b3ffda4183cf8d57eb585613ed4906e.tar.bz2 open-keychain-d5c5a2c43b3ffda4183cf8d57eb585613ed4906e.zip |
major restructuring, moving dialog, message, menu, option menu, task, type IDs into Id in a similar structure as the generated R, also introducing a BaseActivity class that almost all activities derive from, which generates some common dialogs, handles the progress update, thread management, and thread communication
also adding first draft of encrypt file activity, not very functional yet
Diffstat (limited to 'src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java')
-rw-r--r-- | src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java b/src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java index ed1c16833..06e9c6d0a 100644 --- a/src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java +++ b/src/org/thialfihar/android/apg/AskForSecretKeyPassPhrase.java @@ -35,8 +35,6 @@ import android.widget.LinearLayout; import android.widget.Toast;
public class AskForSecretKeyPassPhrase {
- public static final int DIALOG_PASS_PHRASE = 12345;
-
public static interface PassPhraseCallbackInterface {
void passPhraseCallback(String passPhrase);
}
@@ -91,7 +89,7 @@ public class AskForSecretKeyPassPhrase { alert.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
- activity.removeDialog(DIALOG_PASS_PHRASE);
+ activity.removeDialog(Id.dialog.pass_phrase);
String passPhrase = "" + input.getText();
try {
secretKey.extractPrivateKey(passPhrase.toCharArray(),
@@ -109,7 +107,7 @@ public class AskForSecretKeyPassPhrase { alert.setNegativeButton(android.R.string.cancel,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
- activity.removeDialog(DIALOG_PASS_PHRASE);
+ activity.removeDialog(Id.dialog.pass_phrase);
}
});
|