summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-11-07 20:45:11 -0500
committerMatthew Wong <wongma@protonmail.ch>2015-11-07 20:45:11 -0500
commitab2b4d699be7f8190f590deb1f1d82e950a86a51 (patch)
tree288af95820a1cd1859aac93d5050046b9d259370 /app/src
parentd83fc186b270cc1f125d12d3bd7fe9e0c07136b5 (diff)
remove some unused code
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java20
1 files changed, 3 insertions, 17 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
index bd2464b8..e3ed41e8 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
@@ -248,12 +248,6 @@ public class AutofillService extends AccessibilityService {
dialog = null;
}
});
-// builder.setPositiveButton(R.string.autofill_fill, new DialogInterface.OnClickListener() {
-// @Override
-// public void onClick(DialogInterface dialog, int which) {
-// bindDecryptAndVerify();
-// }
-// });
builder.setNeutralButton("Settings", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) { //TODO make icon? gear?
@@ -273,17 +267,8 @@ public class AutofillService extends AccessibilityService {
builder.setItems(itemNames, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
- if (which == items.size()) {
- // the user will have to return to the app themselves.
- Intent intent = new Intent(AutofillService.this, AutofillPreferenceActivity.class);
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
- intent.putExtra("packageName", info.getPackageName());
- intent.putExtra("appName", appName);
- startActivity(intent);
- } else {
- lastWhichItem = which;
- bindDecryptAndVerify();
- }
+ lastWhichItem = which;
+ bindDecryptAndVerify();
}
});
dialog = builder.create();
@@ -347,6 +332,7 @@ public class AutofillService extends AccessibilityService {
ByteArrayOutputStream os = new ByteArrayOutputStream();
OpenPgpApi api = new OpenPgpApi(AutofillService.this, serviceConnection.getService());
+ // TODO we are dropping frames, (did we before??) find out why and maybe make this async
Intent result = api.executeApi(data, is, os);
switch (result.getIntExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_ERROR)) {
case OpenPgpApi.RESULT_CODE_SUCCESS: {