From b33b7c0c8ab335e3ca517d91daf4fe7ded3cc307 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 1 Feb 2019 00:13:36 +0100 Subject: [PATCH] fix typo --- .../securesms/connect/ApplicationDcContext.java | 6 +++--- .../thoughtcrime/securesms/connect/ForegroundDetector.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java b/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java index ecef187fb..5ffd9ec70 100644 --- a/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java +++ b/src/org/thoughtcrime/securesms/connect/ApplicationDcContext.java @@ -82,8 +82,8 @@ public class ApplicationDcContext extends DcContext { smtpWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smtpWakeLock"); smtpWakeLock.setReferenceCounted(false); // if the idle-thread is killed for any reasons, it is better not to rely on reference counting - afterForgroundWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "afterForegroundWakeLock"); - afterForgroundWakeLock.setReferenceCounted(false); + afterForegroundWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "afterForegroundWakeLock"); + afterForegroundWakeLock.setReferenceCounted(false); } catch (Exception e) { Log.e(TAG, "Cannot create wakeLocks"); @@ -311,7 +311,7 @@ public class ApplicationDcContext extends DcContext { public Thread smtpThread = null; private PowerManager.WakeLock smtpWakeLock = null; - public PowerManager.WakeLock afterForgroundWakeLock = null; + public PowerManager.WakeLock afterForegroundWakeLock = null; public final static int INTERRUPT_IDLE = 0x01; // interrupt idle if the thread is already running diff --git a/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java b/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java index 339f84ede..efb04ed5c 100644 --- a/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java +++ b/src/org/thoughtcrime/securesms/connect/ForegroundDetector.java @@ -52,7 +52,7 @@ public class ForegroundDetector implements Application.ActivityLifecycleCallback refs--; if (refs == 0) { - application.dcContext.afterForgroundWakeLock.acquire(60*1000); + application.dcContext.afterForegroundWakeLock.acquire(60*1000); } }