Use more clear argument names

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-12 09:03:27 +02:00 committed by Alper Öztürk
parent 7470fef2d6
commit a7fe0adafb
2 changed files with 3 additions and 3 deletions

View file

@ -210,7 +210,7 @@ class FileUploadWorker(
notificationManager.prepareForStart(
uploadFileOperation,
intents.startIntent(uploadFileOperation),
cancelPendingIntent = intents.startIntent(uploadFileOperation),
intents.notificationStartIntent(uploadFileOperation)
)

View file

@ -45,7 +45,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
@Suppress("MagicNumber")
fun prepareForStart(
uploadFileOperation: UploadFileOperation,
pendingIntent: PendingIntent,
cancelPendingIntent: PendingIntent,
startIntent: PendingIntent
) {
notificationBuilder.run {
@ -65,7 +65,7 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi
addAction(
R.drawable.ic_action_cancel_grey,
context.getString(R.string.common_cancel),
pendingIntent
cancelPendingIntent
)
setContentIntent(startIntent)