diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-18 23:58:19 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-07-18 23:58:19 -0400 |
commit | 4ec3e1956f38879321b13e753294b9fee1b144bf (patch) | |
tree | bbfb6029680705736ba07caf081285d8e71a531e | |
parent | 33a4a183eb6afc7a4f50e64338a8ecaf5008bc57 (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
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 |
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 { |