Fix autofill preference referencing hard-coded application id (#473)

This commit is contained in:
Timo Loewe 2019-01-12 14:54:54 +01:00 committed by حسين
parent 094c6da53e
commit 2a921aec65

View file

@ -375,7 +375,9 @@ class UserPreference : AppCompatActivity() {
.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
val runningServices = am
.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(