mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Rename function
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
b2e0e76605
commit
eb8cb8df99
5 changed files with 5 additions and 5 deletions
|
@ -109,7 +109,7 @@ class FileTransferService : Service() {
|
|||
}
|
||||
|
||||
if (!isRunning) {
|
||||
ForegroundServiceHelper.start(
|
||||
ForegroundServiceHelper.startService(
|
||||
this,
|
||||
AppNotificationManager.TRANSFER_NOTIFICATION_ID,
|
||||
notificationsManager.buildDownloadServiceForegroundNotification(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue