From 9c96c4c5153e25676eb61c38f85bd94714987aed Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Sun, 1 Nov 2015 22:05:33 -0500 Subject: [PATCH] Release wake lock --- .../java/com/moez/QKSMS/transaction/NotificationManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java b/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java index 3625b555..a6a64dac 100644 --- a/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java +++ b/QKSMS/src/main/java/com/moez/QKSMS/transaction/NotificationManager.java @@ -205,6 +205,7 @@ public class NotificationManager { PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FlashActivity"); wl.acquire(); + wl.release(); } if (conversations.size() == 1 && lastConversation.size() == 1) {