Fix bug on acquiring wake lock

This commit is contained in:
Jimmy Shih
2013-12-13 11:08:05 -08:00
parent 08cb38554f
commit 39387fa1c6
@@ -76,8 +76,8 @@ public class SystemUtils {
wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
if (wakeLock == null) {
Log.e(TAG, "Cannot create a new wake lock.");
return null;
}
return wakeLock;
}
if (!wakeLock.isHeld()) {
wakeLock.acquire();