mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
fix typo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user