summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-28 12:05:26 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-14 17:36:46 -0400
commit7182db30b7ddb314afec4eb18f83bb6b189fe2c0 (patch)
treea2fcb7425a6ca5f27d506e8aa703e42af9e81f9b /app
parent0c0054b5656afdf67ba9250669d9a38dae8b24dc (diff)
Ignore focus only when it is from a successful performAction
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/AutofillService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/AutofillService.java
index a490fe17..de5bcfd2 100644
--- a/app/src/main/java/com/zeapo/pwdstore/AutofillService.java
+++ b/app/src/main/java/com/zeapo/pwdstore/AutofillService.java
@@ -162,8 +162,7 @@ public class AutofillService extends AccessibilityService {
String[] passContent = os.toString("UTF-8").split("\n");
// if the user focused on something else, take focus back
// but this will open another dialog...hack to ignore this
- ignoreActionFocus = true;
- info.performAction(AccessibilityNodeInfo.ACTION_FOCUS);
+ ignoreActionFocus = info.performAction(AccessibilityNodeInfo.ACTION_FOCUS);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Bundle args = new Bundle();
args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,