mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
Update closed implementation
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
3061ae6c9f
commit
ad581cfd91
@ -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() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user