Calling isServiceEnabled with the context in credential manager settings
Test: Built and deployed locally Change-Id: I22d3fe863fa31c2601cedbde10907c79469a75f4
This commit is contained in:
@@ -96,7 +96,8 @@ public class CredentialManagerPreferenceController extends BasePreferenceControl
|
||||
}
|
||||
|
||||
Object service = context.getSystemService(Context.CREDENTIAL_SERVICE);
|
||||
if (service != null && CredentialManager.isServiceEnabled()) {
|
||||
|
||||
if (service != null && CredentialManager.isServiceEnabled(context)) {
|
||||
return (CredentialManager) service;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user