aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/theb/ssh/Pubkey.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/theb/ssh/Pubkey.java')
-rw-r--r--src/org/theb/ssh/Pubkey.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/org/theb/ssh/Pubkey.java b/src/org/theb/ssh/Pubkey.java
index 4cfaa9c..9dffe08 100644
--- a/src/org/theb/ssh/Pubkey.java
+++ b/src/org/theb/ssh/Pubkey.java
@@ -101,19 +101,17 @@ public class Pubkey extends Activity {
};
@Override
- protected void onActivityResult(int requestCode, int resultCode,
- String data, Bundle extras)
- {
- if (requestCode == GATHER_ENTROPY) {
- entropySeed = data;
- entropyGathered.release();
- }
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+ if (requestCode == GATHER_ENTROPY) {
+ entropySeed = data.getStringExtra(Intent.EXTRA_TEXT);
+ entropyGathered.release();
+ }
}
protected void gatherEntropy() {
generateButton.setEnabled(false);
Intent intent = new Intent(this, TouchEntropy.class);
- startSubActivity(intent, GATHER_ENTROPY);
+ this.startActivityForResult(intent, GATHER_ENTROPY);
}
OnClickListener mCommitListener = new OnClickListener() {