-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PM-14409: Add realtime check for when the accessibility service is en…
…abled or disabled (#4314)
- Loading branch information
1 parent
a04598c
commit 30eb11b
Showing
11 changed files
with
68 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
...in/java/com/x8bit/bitwarden/data/autofill/accessibility/di/ActivityAccessibilityModule.kt
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...a/com/x8bit/bitwarden/data/autofill/accessibility/manager/AccessibilityActivityManager.kt
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...m/x8bit/bitwarden/data/autofill/accessibility/manager/AccessibilityActivityManagerImpl.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
...om/x8bit/bitwarden/data/autofill/accessibility/manager/AccessibilityEnabledManagerImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 0 additions & 81 deletions
81
...m/x8bit/bitwarden/data/autofill/accessibility/manager/AccessibilityActivityManagerTest.kt
This file was deleted.
Oops, something went wrong.
24 changes: 19 additions & 5 deletions
24
...om/x8bit/bitwarden/data/autofill/accessibility/manager/AccessibilityEnabledManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...om/x8bit/bitwarden/data/autofill/accessibility/manager/FakeAccessibilityEnabledManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.x8bit.bitwarden.data.autofill.accessibility.manager | ||
|
||
import kotlinx.coroutines.flow.MutableStateFlow | ||
import kotlinx.coroutines.flow.StateFlow | ||
import kotlinx.coroutines.flow.asStateFlow | ||
|
||
class FakeAccessibilityEnabledManager : AccessibilityEnabledManager { | ||
|
||
private val mutableIsAccessibilityEnabledStateFlow = MutableStateFlow(value = false) | ||
|
||
override val isAccessibilityEnabledStateFlow: StateFlow<Boolean> | ||
get() = mutableIsAccessibilityEnabledStateFlow.asStateFlow() | ||
|
||
var isAccessibilityEnabled: Boolean | ||
get() = mutableIsAccessibilityEnabledStateFlow.value | ||
set(value) { | ||
mutableIsAccessibilityEnabledStateFlow.value = value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters