Skip to content

Commit 676ede0

Browse files
authored
Add module name to wakelock (#8)
1 parent 05fa9ff commit 676ede0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/boterop/timer/BackgroundTimerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public BackgroundTimerModule(ReactApplicationContext reactContext) {
3636
super(reactContext);
3737
this.reactContext = reactContext;
3838
this.powerManager = (PowerManager) getReactApplicationContext().getSystemService(reactContext.POWER_SERVICE);
39-
this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "rohit_bg_wakelock");
39+
this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "react-native-background-timer:wakelock");
4040
reactContext.addLifecycleEventListener(listener);
4141
}
4242

0 commit comments

Comments
 (0)