codacy: all methods are static. Consider using a utility class instead.

This commit is contained in:
AndyScherzinger 2018-09-18 14:50:51 +02:00
parent 22e7f71e22
commit 799c3a3163
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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);