aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-10 19:46:18 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-10 19:46:18 -0400
commitd63b16eb2671608cd9acc7e935f1ec3db1d0b396 (patch)
tree54e973aad0c960ba48349cc62d92a0fb35a66793 /app/src/main/java
parentfccefadd3205204cd766af66a391e2b18f52bd67 (diff)
Open password generation dialog when button pressed
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
index 28aea81e..9c0bc877 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -1,6 +1,7 @@
package com.zeapo.pwdstore.crypto;
import android.app.Activity;
+import android.app.DialogFragment;
import android.app.PendingIntent;
import android.content.ClipData;
import android.content.ClipboardManager;
@@ -28,6 +29,7 @@ import android.widget.Toast;
import com.google.common.primitives.Longs;
import com.zeapo.pwdstore.R;
import com.zeapo.pwdstore.UserPreference;
+import com.zeapo.pwdstore.pwgenDialogFragment;
import com.zeapo.pwdstore.utils.PasswordRepository;
import org.apache.commons.io.FileUtils;
@@ -174,6 +176,9 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
case R.id.crypto_get_key_ids:
getKeyIds(new Intent());
break;
+ case R.id.generate_password:
+ DialogFragment df = new pwgenDialogFragment();
+ df.show(getFragmentManager(), "generator");
default:
// should not happen