Rename function

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-12-06 10:04:36 +01:00
parent b2e0e76605
commit eb8cb8df99
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF
5 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,7 @@ class FileTransferService : Service() {
}
if (!isRunning) {
ForegroundServiceHelper.start(
ForegroundServiceHelper.startService(
this,
AppNotificationManager.TRANSFER_NOTIFICATION_ID,
notificationsManager.buildDownloadServiceForegroundNotification(),

View file

@ -174,7 +174,7 @@ class PlayerService : Service() {
notificationBuilder.setChannelId(NotificationUtils.NOTIFICATION_CHANNEL_MEDIA)
}
ForegroundServiceHelper.start(
ForegroundServiceHelper.startService(
this,
R.string.media_notif_ticker,
notificationBuilder.build(),

View file

@ -28,7 +28,7 @@ import androidx.core.app.ServiceCompat
import com.owncloud.android.datamodel.ForegroundServiceType
object ForegroundServiceHelper {
fun start(
fun startService(
service: Service,
id: Int,
notification: Notification,

View file

@ -202,7 +202,7 @@ public class FileDownloader extends Service
public int onStartCommand(Intent intent, int flags, int startId) {
Log_OC.d(TAG, "Starting command with id " + startId);
ForegroundServiceHelper.INSTANCE.start(this, FOREGROUND_SERVICE_ID, mNotification, ForegroundServiceType.DataSync);
ForegroundServiceHelper.INSTANCE.startService(this, FOREGROUND_SERVICE_ID, mNotification, ForegroundServiceType.DataSync);
if (intent == null || !intent.hasExtra(EXTRA_USER) || !intent.hasExtra(EXTRA_FILE)) {
Log_OC.e(TAG, "Not enough information provided in intent");

View file

@ -313,7 +313,7 @@ public class FileUploader extends Service
public int onStartCommand(Intent intent, int flags, int startId) {
Log_OC.d(TAG, "Starting command with id " + startId);
ForegroundServiceHelper.INSTANCE.start(this, FOREGROUND_SERVICE_ID, mNotification, ForegroundServiceType.DataSync);
ForegroundServiceHelper.INSTANCE.startService(this, FOREGROUND_SERVICE_ID, mNotification, ForegroundServiceType.DataSync);
if (intent == null) {
Log_OC.e(TAG, "Intent is null");