浏览代码

Rename function

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 年之前
父节点
当前提交
262be95387

+ 1 - 1
app/src/main/java/com/nextcloud/client/files/downloader/FileTransferService.kt

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

+ 1 - 1
app/src/main/java/com/nextcloud/client/media/PlayerService.kt

@@ -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(),

+ 1 - 1
app/src/main/java/com/nextcloud/utils/ForegroundServiceHelper.kt

@@ -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,

+ 1 - 1
app/src/main/java/com/owncloud/android/files/services/FileDownloader.java

@@ -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");

+ 1 - 1
app/src/main/java/com/owncloud/android/files/services/FileUploader.java

@@ -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");