File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
src/main/java/espero/jiofibatterynotifier/Services Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ android {
8
8
applicationId " espero.jiofibatterynotifier"
9
9
minSdkVersion 17
10
10
targetSdkVersion 29
11
- versionCode 8
12
- versionName " 1.8 "
11
+ versionCode 9
12
+ versionName " 1.9 "
13
13
14
14
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
15
15
}
Original file line number Diff line number Diff line change 11
11
"type" : " SINGLE" ,
12
12
"filters" : [],
13
13
"properties" : [],
14
- "versionCode" : 8 ,
15
- "versionName" : " 1.8 " ,
14
+ "versionCode" : 9 ,
15
+ "versionName" : " 1.9 " ,
16
16
"enabled" : true ,
17
17
"outputFile" : " app-release.apk"
18
18
}
Original file line number Diff line number Diff line change @@ -158,11 +158,16 @@ private boolean checkWifiOnAndConnected() {
158
158
159
159
if (wifiMgr .isWifiEnabled ()) { // Wi-Fi adapter is ON
160
160
161
- WifiInfo wifiInfo = wifiMgr .getConnectionInfo ();
162
-
163
- if (wifiInfo .getNetworkId () == -1 ) {
164
- return false ; // Not connected to an access point
165
- }
161
+ // Disabling extra check of wifi connectivity because,
162
+ // newer version of devices always showing not connected,
163
+ // without location permission
164
+ // Bug: https://issuetracker.google.com/issues/136021574
165
+
166
+ // WifiInfo wifiInfo = wifiMgr.getConnectionInfo();
167
+ //
168
+ // if (wifiInfo.getNetworkId() == -1) {
169
+ // return false; // Not connected to an access point
170
+ // }
166
171
return true ; // Connected to an access point
167
172
} else {
168
173
return false ; // Wi-Fi adapter is OFF
You can’t perform that action at this time.
0 commit comments