diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-05-12 08:24:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 08:24:22 +0200 |
commit | 413e68fcedb5a1450f45fa4e75f07334bf8b224c (patch) | |
tree | 59d7e708ef1ace6990e8c94a01f84568f1de90ea /platform/android/java/src/com | |
parent | 0f8a17b0cb70c6051963c9220c1ed2ba2ff31d66 (diff) | |
parent | 8be9b98b8e7c0bc3fdb91c1b7f0f46381285cf4a (diff) |
Merge pull request #8723 from volzhs/fix-android-master
Fix possible memory leak for Android and update gradle
Diffstat (limited to 'platform/android/java/src/com')
-rw-r--r-- | platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java b/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java index 627bf3eedd..e83faa2756 100644 --- a/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java +++ b/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java @@ -569,10 +569,10 @@ public abstract class DownloaderService extends CustomIntentService implements I */ void pollNetworkState() { if (null == mConnectivityManager) { - mConnectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); + mConnectivityManager = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE); } if (null == mWifiManager) { - mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); + mWifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); } if (mConnectivityManager == null) { Log.w(Constants.TAG, |