mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
Fix autofill preference referencing hard-coded application id (#473)
This commit is contained in:
parent
094c6da53e
commit
2a921aec65
@ -375,7 +375,9 @@ class UserPreference : AppCompatActivity() {
|
|||||||
.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
|
.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
|
||||||
val runningServices = am
|
val runningServices = am
|
||||||
.getEnabledAccessibilityServiceList(AccessibilityServiceInfo.FEEDBACK_GENERIC)
|
.getEnabledAccessibilityServiceList(AccessibilityServiceInfo.FEEDBACK_GENERIC)
|
||||||
return runningServices.any { "com.zeapo.pwdstore/.autofill.AutofillService" == it.id }
|
return runningServices
|
||||||
|
.map { it.id.substringBefore("/") }
|
||||||
|
.any { it == BuildConfig.APPLICATION_ID }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onActivityResult(
|
override fun onActivityResult(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user