From e665252b867e34475e2bb05b1199f436b3f97d3f Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 19 Nov 2018 13:25:16 -0800 Subject: [PATCH] Add more logging to GenericForegroundService. --- .../securesms/service/GenericForegroundService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/service/GenericForegroundService.java b/src/org/thoughtcrime/securesms/service/GenericForegroundService.java index 1e33c40fa8..4cfe8988fd 100644 --- a/src/org/thoughtcrime/securesms/service/GenericForegroundService.java +++ b/src/org/thoughtcrime/securesms/service/GenericForegroundService.java @@ -57,6 +57,8 @@ public class GenericForegroundService extends Service { String channelId = Preconditions.checkNotNull(intent.getStringExtra(EXTRA_CHANNEL_ID)); int iconRes = intent.getIntExtra(EXTRA_ICON_RES, R.drawable.ic_signal_grey_24dp); + Log.i(TAG, "handleStart() Title: " + title + " ChannelId: " + channelId); + foregroundCount++; if (foregroundCount == 1) { @@ -70,6 +72,8 @@ public class GenericForegroundService extends Service { } private void handleStop() { + Log.i(TAG, "handleStop()"); + postObligatoryForegroundNotification(activeTitle, activeChannelId, activeIconRes); foregroundCount--;