From 631a4edbaef42a292c67b3c92ac7d6355c0e214c Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Thu, 1 Sep 2016 22:07:52 +0200 Subject: [PATCH] Google API software license --- .../name/gumartinm/weather/information/activity/LicensesActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(""); -- 2.1.4