|  |  | @ -57,6 +57,8 @@ public class GenericForegroundService extends Service { | 
			
		
	
		
		
			
				
					
					|  |  |  |     String channelId = Preconditions.checkNotNull(intent.getStringExtra(EXTRA_CHANNEL_ID)); |  |  |  |     String channelId = Preconditions.checkNotNull(intent.getStringExtra(EXTRA_CHANNEL_ID)); | 
			
		
	
		
		
			
				
					
					|  |  |  |     int    iconRes   = intent.getIntExtra(EXTRA_ICON_RES, R.drawable.ic_signal_grey_24dp); |  |  |  |     int    iconRes   = intent.getIntExtra(EXTRA_ICON_RES, R.drawable.ic_signal_grey_24dp); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     Log.i(TAG, "handleStart() Title: " + title + "  ChannelId: " + channelId); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     foregroundCount++; |  |  |  |     foregroundCount++; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (foregroundCount == 1) { |  |  |  |     if (foregroundCount == 1) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -70,6 +72,8 @@ public class GenericForegroundService extends Service { | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   private void handleStop() { |  |  |  |   private void handleStop() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     Log.i(TAG, "handleStop()"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     postObligatoryForegroundNotification(activeTitle, activeChannelId, activeIconRes); |  |  |  |     postObligatoryForegroundNotification(activeTitle, activeChannelId, activeIconRes); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     foregroundCount--; |  |  |  |     foregroundCount--; | 
			
		
	
	
		
		
			
				
					|  |  | 
 |