diff options
author | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-02 12:04:33 +0100 |
---|---|---|
committer | Daniel Gultsch <inputmice@siacs.eu> | 2015-01-02 12:04:33 +0100 |
commit | bcd3be59ce78609e608f4a8f7a868be977fdb4bb (patch) | |
tree | 4437c8567a7c18786f8f35b76f3aff444dfe3511 /src/main/java/eu/siacs/conversations/services/NotificationService.java | |
parent | 8d2f454479632465387d8d824a56bd46aa9397e5 (diff) |
put Conversations into background mode earlier
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/NotificationService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index c27ab72a2..a30cf2f12 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -16,6 +16,7 @@ import android.support.v4.app.NotificationCompat.Builder; import android.support.v4.app.TaskStackBuilder; import android.text.Html; import android.util.DisplayMetrics; +import android.util.Log; import java.io.FileNotFoundException; import java.util.ArrayList; @@ -368,6 +369,9 @@ public class NotificationService { } public void setIsInForeground(final boolean foreground) { + if (foreground != this.mIsInForeground) { + Log.d(Config.LOGTAG,"setIsInForeground("+Boolean.toString(foreground)+")"); + } this.mIsInForeground = foreground; } |