aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java4
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java10
2 files changed, 6 insertions, 8 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 21627038..447f39f3 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
@@ -401,8 +401,8 @@ public class AutofillService extends AccessibilityService {
for (int i = 0; i < items.size(); i++) {
itemNames[i] = items.get(i).getName().replace(".gpg", "");
}
- itemNames[items.size()] = "Pick...";
- itemNames[items.size() + 1] = "Pick and match...";
+ itemNames[items.size()] = getString(R.string.autofill_pick);
+ itemNames[items.size() + 1] = getString(R.string.autofill_pick_and_match);
builder.setItems(itemNames, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
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 3b027830..683c2561 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -255,15 +255,13 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
ClipData clip = ClipData.newPlainText("pgp_handler_result_pm", decodedPassword);
clipboard.setPrimaryClip(clip);
+ int clearAfter = 45;
try {
- showToast(this.getResources().getString(R.string.clipboard_beginning_toast_text)
- + " " + Integer.parseInt(settings.getString("general_show_time", "45")) + " "
- + this.getResources().getString(R.string.clipboard_ending_toast_text));
+ clearAfter = Integer.parseInt(settings.getString("general_show_time", "45"));
} catch (NumberFormatException e) {
- showToast(this.getResources().getString(R.string.clipboard_beginning_toast_text)
- + " 45 "
- + this.getResources().getString(R.string.clipboard_ending_toast_text));
+ // ignore and keep default
}
+ showToast(this.getResources().getString(R.string.clipboard_toast_text, clearAfter));
}
public void handleClick(View view) {