Add more logging to GenericForegroundService.

fork-5.53.8
Greyson Parrelli 2018-11-19 13:25:16 -08:00
rodzic a3411072ba
commit e665252b86
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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--;