mirror of
https://github.com/etesync/android
synced 2025-01-11 08:10:58 +00:00
Update build tools to 25.0.0, fix WiFiManager leak
This commit is contained in:
parent
c714785f47
commit
e0a5748da3
@ -10,7 +10,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion '24.0.3'
|
||||
buildToolsVersion '25.0.0'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "at.bitfire.davdroid"
|
||||
|
@ -99,7 +99,7 @@ public abstract class SyncAdapterService extends Service {
|
||||
String onlySSID = settings.getSyncWifiOnlySSID();
|
||||
if (onlySSID != null) {
|
||||
onlySSID = "\"" + onlySSID + "\"";
|
||||
WifiManager wifi = (WifiManager)getContext().getSystemService(WIFI_SERVICE);
|
||||
WifiManager wifi = (WifiManager)getContext().getApplicationContext().getSystemService(WIFI_SERVICE);
|
||||
WifiInfo info = wifi.getConnectionInfo();
|
||||
if (info == null || !onlySSID.equals(info.getSSID())) {
|
||||
App.log.info("Connected to wrong WiFi network (" + info.getSSID() + ", required: " + onlySSID + "), ignoring");
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7b8f52ad55dbc62b57a59f783ac79e8db567e4ad
|
||||
Subproject commit 30b8bc58ce3dccc8c41af0b4d224a3b5aafd5979
|
@ -1 +1 @@
|
||||
Subproject commit 86d3546970d3db3df2b50a2c31a356efb2210fbd
|
||||
Subproject commit fff1c904582c6d1cf0c4e9b3f64245138e395a03
|
@ -1 +1 @@
|
||||
Subproject commit fe0b1bf5e85cb011149716cd9ea10482fcbbcf4e
|
||||
Subproject commit cca311e3dabf7f6450964edd2060a811115a7443
|
@ -1 +1 @@
|
||||
Subproject commit ce7a2f2cb2928673eb8ff03f68acd371211f601c
|
||||
Subproject commit eae31dac277c1b1d85f5870829fbc0ff1cb49735
|
Loading…
Reference in New Issue
Block a user