summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-18 23:58:19 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-18 23:58:19 -0400
commit4ec3e1956f38879321b13e753294b9fee1b144bf (patch)
treebbfb6029680705736ba07caf081285d8e71a531e /app
parent33a4a183eb6afc7a4f50e64338a8ecaf5008bc57 (diff)
Set result & finish so that if the user presses generate when prompted for generate/import, operation is resumed just like if user presses import
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
index 8344e8b3..6c945598 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
@@ -254,6 +254,8 @@ public class UserPreference extends AppCompatActivity {
public void makeSshKey() {
Intent intent = new Intent(getApplicationContext(), SshKeyGen.class);
startActivity(intent);
+ setResult(RESULT_OK);
+ finish();
}
private void copySshKey(Uri uri) throws IOException {