use of com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener in project WordPress-Android by wordpress-mobile.
the class SmartLockHelper method initSmartLockForPasswords.
public void initSmartLockForPasswords() {
FragmentActivity activity = getActivityAndCheckAvailability();
if (activity == null) {
return;
}
mCredentialsClient = new GoogleApiClient.Builder(activity).addConnectionCallbacks((ConnectionCallbacks) activity).enableAutoManage(activity, (OnConnectionFailedListener) activity).addApi(Auth.CREDENTIALS_API).build();
}
Aggregations