From 4ec3e1956f38879321b13e753294b9fee1b144bf Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Sat, 18 Jul 2015 23:58:19 -0400 Subject: Set result & finish so that if the user presses generate when prompted for generate/import, operation is resumed just like if user presses import --- app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3