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:
B. Petersen
2017-03-28 10:59:50 +02:00
parent 05fbf5bdce
commit eb3aa46ff7
@@ -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
}
}