mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Merge remote-tracking branch 'origin/refactor/use-service-compat' into refactor/use-service-compat
This commit is contained in:
commit
5cc6d2e729
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue