Update closed implementation

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-07-13 23:44:47 +02:00
parent 3061ae6c9f
commit ad581cfd91

View File

@ -23,6 +23,8 @@ package com.nextcloud.talk.utils;
import android.content.Intent;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.security.ProviderInstaller;
import com.google.android.gms.security.ProviderInstaller.ProviderInstallListener;
import com.nextcloud.talk.application.NextcloudTalkApplication;
@ -35,6 +37,13 @@ public class ClosedInterfaceImpl implements ClosedInterface, ProviderInstallList
this);
}
@Override
public boolean isGooglePlayServicesAvailable() {
GoogleApiAvailability api = GoogleApiAvailability.getInstance();
int code = api.isGooglePlayServicesAvailable(NextcloudTalkApplication.getSharedApplication().getApplicationContext());
return code == ConnectionResult.SUCCESS;
}
@Override
public void onProviderInstalled() {