Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-08-16 16:40:30 +02:00
parent 33e2257d5a
commit e247cf1a08
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -24,6 +24,7 @@ class OfflineOperationsNotificationManager(private val context: Context, viewThe
private const val ID = 121
}
@Suppress("MagicNumber")
fun start(totalOperationSize: Int, currentOperationIndex: Int, filename: String) {
val title = if (totalOperationSize > 1) {
String.format(
@ -45,6 +46,7 @@ class OfflineOperationsNotificationManager(private val context: Context, viewThe
showNotification()
}
@Suppress("MagicNumber")
fun update(totalOperationSize: Int, currentOperationIndex: Int) {
val percent = (currentOperationIndex * 100) / totalOperationSize
notificationBuilder.run {