|  |  | @ -11,7 +11,6 @@ import android.os.Handler | 
			
		
	
		
		
			
				
					
					|  |  |  | import android.os.Looper |  |  |  | import android.os.Looper | 
			
		
	
		
		
			
				
					
					|  |  |  | import androidx.core.app.NotificationCompat |  |  |  | import androidx.core.app.NotificationCompat | 
			
		
	
		
		
			
				
					
					|  |  |  | import androidx.core.content.FileProvider |  |  |  | import androidx.core.content.FileProvider | 
			
		
	
		
		
			
				
					
					|  |  |  | import androidx.core.os.bundleOf |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.R |  |  |  | import io.legado.app.R | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.base.BaseService |  |  |  | import io.legado.app.base.BaseService | 
			
		
	
		
		
			
				
					
					|  |  |  | import io.legado.app.constant.AppConst |  |  |  | import io.legado.app.constant.AppConst | 
			
		
	
	
		
		
			
				
					|  |  | @ -152,27 +151,21 @@ class DownloadService : BaseService() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             .setOngoing(true) |  |  |  |             .setOngoing(true) | 
			
		
	
		
		
			
				
					
					|  |  |  |             .setContentTitle(getString(R.string.action_download)) |  |  |  |             .setContentTitle(getString(R.string.action_download)) | 
			
		
	
		
		
			
				
					
					|  |  |  |         notificationBuilder.setContentIntent( |  |  |  |         notificationBuilder.setContentIntent( | 
			
		
	
		
		
			
				
					
					|  |  |  |             IntentHelp.servicePendingIntent<DownloadService>( |  |  |  |             IntentHelp.servicePendingIntent<DownloadService>(this, IntentAction.play) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this, |  |  |  |                 putExtra("downloadId", downloadId) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 IntentAction.play, |  |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 bundleOf("downloadId" to downloadId) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         notificationBuilder.addAction( |  |  |  |         notificationBuilder.addAction( | 
			
		
	
		
		
			
				
					
					|  |  |  |             R.drawable.ic_stop_black_24dp, |  |  |  |             R.drawable.ic_stop_black_24dp, | 
			
		
	
		
		
			
				
					
					|  |  |  |             getString(R.string.cancel), |  |  |  |             getString(R.string.cancel), | 
			
		
	
		
		
			
				
					
					|  |  |  |             IntentHelp.servicePendingIntent<DownloadService>( |  |  |  |             IntentHelp.servicePendingIntent<DownloadService>(this, IntentAction.stop) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this, |  |  |  |                 putExtra("downloadId", downloadId) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 IntentAction.stop, |  |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 bundleOf("downloadId" to downloadId) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         notificationBuilder.setDeleteIntent( |  |  |  |         notificationBuilder.setDeleteIntent( | 
			
		
	
		
		
			
				
					
					|  |  |  |             IntentHelp.servicePendingIntent<DownloadService>( |  |  |  |             IntentHelp.servicePendingIntent<DownloadService>(this, IntentAction.stop) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 this, |  |  |  |                 putExtra("downloadId", downloadId) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 IntentAction.stop, |  |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 bundleOf("downloadId" to downloadId) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             ) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |         ) | 
			
		
	
		
		
			
				
					
					|  |  |  |         notificationBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC) |  |  |  |         notificationBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC) | 
			
		
	
		
		
			
				
					
					|  |  |  |         notificationBuilder.setContentText(content) |  |  |  |         notificationBuilder.setContentText(content) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |