From: Gustavo Martin Morcuende Date: Thu, 1 Sep 2016 20:07:52 +0000 (+0200) Subject: Google API software license X-Git-Tag: weatherinformation-1.3~3 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=631a4edbaef42a292c67b3c92ac7d6355c0e214c;p=AndroidWeatherInformation Google API software license --- diff --git a/app/src/main/java/name/gumartinm/weather/information/activity/LicensesActivity.java b/app/src/main/java/name/gumartinm/weather/information/activity/LicensesActivity.java index d7dd085..324d495 100644 --- a/app/src/main/java/name/gumartinm/weather/information/activity/LicensesActivity.java +++ b/app/src/main/java/name/gumartinm/weather/information/activity/LicensesActivity.java @@ -20,6 +20,7 @@ import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.webkit.WebView; +import com.google.android.gms.common.GoogleApiAvailability; import com.google.android.gms.common.GooglePlayServicesUtil; import name.gumartinm.weather.information.R; import timber.log.Timber; @@ -57,7 +58,8 @@ public class LicensesActivity extends AppCompatActivity { final ActionBar actionBar = this.getSupportActionBar(); actionBar.setTitle(this.getString(R.string.weather_licenses_title)); - final String googlePlayServices = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(this.getApplicationContext()); + final GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance(); + final String googlePlayServices = googleAPI.getOpenSourceSoftwareLicenseInfo(this.getApplicationContext()); try { final StringBuilder stringBuilder = this.loadData(); stringBuilder.append(googlePlayServices).append("").append("").append("");