aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java
index e9aa86f0..c1d75acd 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.java
@@ -1,6 +1,7 @@
package com.zeapo.pwdstore.autofill;
import android.content.DialogInterface;
+import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
@@ -13,6 +14,7 @@ import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
+import com.zeapo.pwdstore.PasswordStore;
import com.zeapo.pwdstore.R;
public class AutofillFragment extends DialogFragment {
@@ -50,6 +52,17 @@ public class AutofillFragment extends DialogFragment {
((EditText) view.findViewById(R.id.matched)).setText(preference);
}
+ View.OnClickListener matchPassword = new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ // TODO figure out UI for this
+ Intent intent = new Intent(getActivity(), PasswordStore.class);
+ startActivity(intent);
+ }
+ };
+ view.findViewById(R.id.match).setOnClickListener(matchPassword);
+ view.findViewById(R.id.matched).setOnClickListener(matchPassword);
+
final SharedPreferences.Editor editor = prefs.edit();
builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override