You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/kotlin/com/x8bit/bitwarden/data/autofill/accessibility/processor/BitwardenAccessibilityProcessorImpl.kt
+31-24Lines changed: 31 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,13 @@ class BitwardenAccessibilityProcessorImpl(
33
33
) {
34
34
// Only process the event if the tile was clicked
35
35
val accessibilityAction = accessibilityAutofillManager.accessibilityAction ?:return
36
-
val eventNode = event.source ?:return
37
36
38
37
// Prevent clearing the action until we receive a processable event in case unprocessable
39
38
// events are still being received from the device. This can happen on slower devices or if
40
39
// screen transitions are still being performed.
41
-
if (!eventNode.shouldProcessEvent(rootAccessibilityNodeInfoProvider)) {
Copy file name to clipboardExpand all lines: app/src/test/kotlin/com/x8bit/bitwarden/data/autofill/accessibility/processor/BitwardenAccessibilityProcessorTest.kt
+36-35Lines changed: 36 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ class BitwardenAccessibilityProcessorTest {
77
77
}
78
78
79
79
@Test
80
-
fun`processAccessibilityEvent with null event source should return`() {
80
+
fun`processAccessibilityEvent with null event source and root node should return`() {
81
81
val event = mockk<AccessibilityEvent> {
82
82
every { source } returns null
83
83
}
@@ -89,6 +89,41 @@ class BitwardenAccessibilityProcessorTest {
89
89
}
90
90
}
91
91
92
+
@Test
93
+
fun`processAccessibilityEvent with null event source and invalid root node should return`() {
0 commit comments