Merge remote-tracking branch 'origin/refactor/use-service-compat' into refactor/use-service-compat

This commit is contained in:
alperozturk 2023-12-07 10:28:25 +01:00
commit 5cc6d2e729
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -155,7 +155,7 @@ public class FileDownloader extends Service
mBinder = new FileDownloaderBinder();
NotificationCompat.Builder builder = NotificationUtils.newNotificationBuilder(this, viewThemeUtils).setContentTitle(
getApplicationContext().getResources().getString(R.string.app_name))
getApplicationContext().getResources().getString(R.string.app_name))
.setContentText(getApplicationContext().getResources().getString(R.string.foreground_service_download))
.setSmallIcon(R.drawable.notification_icon)
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.notification_icon));
@ -194,9 +194,9 @@ public class FileDownloader extends Service
/**
* Entry point to add one or several files to the queue of downloads.
*
* New downloads are added calling to startService(), resulting in a call to this method.
* This ensures the service will keep on working although the caller activity goes away.
* <p>
* New downloads are added calling to startService(), resulting in a call to this method. This ensures the service
* will keep on working although the caller activity goes away.
*/
@Override
public int onStartCommand(Intent intent, int flags, int startId) {