summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authoralexlab2017 <30337560+alexlab2017@users.noreply.github.com>2018-09-11 10:53:55 +0200
committerMohamed Zenadi <zeapo@users.noreply.github.com>2018-09-11 10:53:55 +0200
commit270ab889b0eafbb6fce35769e21cef78b2f028c7 (patch)
tree105244ce561802da4dd26e6d36e262410eb40ac8 /app/src/main/java
parentdd43545c4c52910fecfd912c88019171814796f1 (diff)
Clear clipboard 20 times fix (#423)
* Fix clear clipboard 20 times As described in issue #419 there was a bug when clearing clipboard 20 times because from "0" to "< 19" there are 19 numbers, not 20. 19 is never reached because of "less than" operator. This could be also fixed by changing the operator from "=" to "<=" but I think is better to change the number of times to 20. * Fixed clear clipboard 20 times hint Fixed the hint to match what really happens, consecutive numbers are stored in the clipboard 20 times.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java2
1 files changed, 1 insertions, 1 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 dcc74840..5b969d25 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java
@@ -620,7 +620,7 @@ public class AutofillService extends AccessibilityService {
clip = ClipData.newPlainText("autofill_pm", "");
clipboard.setPrimaryClip(clip);
if (settings.getBoolean("clear_clipboard_20x", false)) {
- for (int i = 0; i < 19; i++) {
+ for (int i = 0; i < 20; i++) {
clip = ClipData.newPlainText(String.valueOf(i), String.valueOf(i));
clipboard.setPrimaryClip(clip);
}