Skip to content

Commit 548bd3e

Browse files
committed
Fixed the release wifi lock function, oops :o!
1 parent 48c3760 commit 548bd3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ android {
1717
minSdkVersion safeExtGet('minSdkVersion', 16)
1818
targetSdkVersion safeExtGet('targetSdkVersion', 28)
1919
versionCode 7
20-
versionName "0.1.6"
20+
versionName "0.1.7"
2121
}
2222
}
2323

android/src/main/java/com/stumbleapp/utils/UtilsModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ public void acquireWifiLock() {
256256

257257
@ReactMethod
258258
public void releaseWifiLock() {
259-
if ( wifiLock.isHeld() ) {
259+
if ( !wifiLock.isHeld() ) {
260260
return;
261261
}
262262

263-
wifiLock.acquire();
263+
wifiLock.release();
264264
}
265265

266266
@TargetApi( Build.VERSION_CODES.N )

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-app-utils",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "A simple React-Native utils library with useful functions.",
55
"nativePackage": true,
66
"main": "index.js",

0 commit comments

Comments
 (0)