mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
Fix code analytics
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
33e2257d5a
commit
e247cf1a08
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue