From 56144450403c56d5467dab4d58704b2c9bb4b951 Mon Sep 17 00:00:00 2001 From: David Perez Date: Wed, 30 Oct 2024 14:45:28 -0500 Subject: [PATCH] PM-14255: Remove accessibility logic to improve overall performance --- .../autofill/accessibility/BitwardenAccessibilityService.kt | 3 +-- app/src/main/res/xml/accessibility_service.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/autofill/accessibility/BitwardenAccessibilityService.kt b/app/src/main/java/com/x8bit/bitwarden/data/autofill/accessibility/BitwardenAccessibilityService.kt index f41b85a0b..86b9299ef 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/autofill/accessibility/BitwardenAccessibilityService.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/autofill/accessibility/BitwardenAccessibilityService.kt @@ -22,8 +22,7 @@ class BitwardenAccessibilityService : AccessibilityService() { lateinit var processor: BitwardenAccessibilityProcessor override fun onAccessibilityEvent(event: AccessibilityEvent) { - if (rootInActiveWindow?.packageName != event.packageName) return - processor.processAccessibilityEvent(rootAccessibilityNodeInfo = rootInActiveWindow) + processor.processAccessibilityEvent(rootAccessibilityNodeInfo = event.source) } override fun onInterrupt() = Unit diff --git a/app/src/main/res/xml/accessibility_service.xml b/app/src/main/res/xml/accessibility_service.xml index 8ab097fbc..773837d40 100644 --- a/app/src/main/res/xml/accessibility_service.xml +++ b/app/src/main/res/xml/accessibility_service.xml @@ -1,7 +1,7 @@