mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
After the app is paused, show messages the next 10 minutes immediately. Affter that, we sleep most time (11/12th=55 seconds) of a minute.
This commit is contained in:
@@ -51,7 +51,6 @@ import java.io.File;
|
||||
public class ApplicationLoader extends Application {
|
||||
|
||||
private static Drawable cachedWallpaper;
|
||||
private static boolean isCustomTheme;
|
||||
private static final Object sync = new Object();
|
||||
|
||||
public static volatile Context applicationContext;
|
||||
@@ -275,6 +274,6 @@ public class ApplicationLoader extends Application {
|
||||
|
||||
public static void stayAwakeForAMoment()
|
||||
{
|
||||
stayAwakeWakeLock.acquire(2*60*1000); // 1 Minute, TODO: we should use about 10 Minutes here
|
||||
stayAwakeWakeLock.acquire(10*60*1000); // 10 Minutes to wait for "after chat" messages, after that, we sleep most time, see wakeupWakeLock
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user