From 2fe941fd034c6f40b925627521b98089d5a91c2d Mon Sep 17 00:00:00 2001 From: boterop Date: Sat, 27 Apr 2024 17:26:04 -0500 Subject: [PATCH] Add module name to wakelock --- .../src/main/java/com/boterop/timer/BackgroundTimerModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/boterop/timer/BackgroundTimerModule.java b/android/src/main/java/com/boterop/timer/BackgroundTimerModule.java index 72556c9..5a0f898 100644 --- a/android/src/main/java/com/boterop/timer/BackgroundTimerModule.java +++ b/android/src/main/java/com/boterop/timer/BackgroundTimerModule.java @@ -36,7 +36,7 @@ public BackgroundTimerModule(ReactApplicationContext reactContext) { super(reactContext); this.reactContext = reactContext; this.powerManager = (PowerManager) getReactApplicationContext().getSystemService(reactContext.POWER_SERVICE); - this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "rohit_bg_wakelock"); + this.wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "react-native-background-timer:wakelock"); reactContext.addLifecycleEventListener(listener); }