mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
codacy: all methods are static. Consider using a utility class instead.
This commit is contained in:
parent
22e7f71e22
commit
799c3a3163
1 changed files with 4 additions and 1 deletions
|
@ -26,10 +26,13 @@ import android.util.Log;
|
|||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.GoogleApiAvailability;
|
||||
|
||||
public class GooglePlayUtils {
|
||||
public final class GooglePlayUtils {
|
||||
private static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
|
||||
private static final String TAG = "GooglePlayUtils";
|
||||
|
||||
private GooglePlayUtils() {
|
||||
}
|
||||
|
||||
public static boolean checkPlayServices(Activity activity) {
|
||||
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
|
||||
int resultCode = apiAvailability.isGooglePlayServicesAvailable(activity);
|
||||
|
|
Loading…
Reference in a new issue