mirror of https://github.com/M66B/NetGuard.git
Check for Play services
This commit is contained in:
parent
1aafeaddef
commit
0247b2c41e
|
@ -63,6 +63,8 @@ import android.widget.Toast;
|
|||
|
||||
import com.android.vending.billing.IInAppBillingService;
|
||||
import com.google.android.gms.appinvite.AppInviteInvitation;
|
||||
import com.google.android.gms.common.ConnectionResult;
|
||||
import com.google.android.gms.common.GooglePlayServicesUtil;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
@ -480,7 +482,9 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
|||
}
|
||||
});
|
||||
|
||||
if (!Util.hasValidFingerprint(TAG, this) || getIntentInvite(this).resolveActivity(getPackageManager()) == null)
|
||||
if (!Util.hasValidFingerprint(TAG, this) ||
|
||||
GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) != ConnectionResult.SUCCESS ||
|
||||
getIntentInvite(this).resolveActivity(getPackageManager()) == null)
|
||||
menu.removeItem(R.id.menu_invite);
|
||||
|
||||
if (getIntentSupport().resolveActivity(getPackageManager()) == null)
|
||||
|
|
Loading…
Reference in New Issue