mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Ignore focus only when it is from a successful performAction
This commit is contained in:
@@ -162,8 +162,7 @@ public class AutofillService extends AccessibilityService {
|
|||||||
String[] passContent = os.toString("UTF-8").split("\n");
|
String[] passContent = os.toString("UTF-8").split("\n");
|
||||||
// if the user focused on something else, take focus back
|
// if the user focused on something else, take focus back
|
||||||
// but this will open another dialog...hack to ignore this
|
// but this will open another dialog...hack to ignore this
|
||||||
ignoreActionFocus = true;
|
ignoreActionFocus = info.performAction(AccessibilityNodeInfo.ACTION_FOCUS);
|
||||||
info.performAction(AccessibilityNodeInfo.ACTION_FOCUS);
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
|
args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
|
||||||
|
Reference in New Issue
Block a user