Skip to content

Commit

Permalink
Use Kotlin Pair
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Dec 21, 2024
1 parent d3058fc commit 6383777
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.schabi.newpipe.local.subscription

import android.content.Context
import android.util.Pair
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Flowable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.schabi.newpipe.local.subscription.workers
import android.content.Context
import android.content.pm.ServiceInfo
import android.os.Build
import android.util.Pair
import android.webkit.MimeTypeMap
import android.widget.Toast
import androidx.core.app.NotificationCompat
Expand Down Expand Up @@ -77,7 +76,7 @@ class SubscriptionImportWorker(
val currentIndex = mutex.withLock { index++ }
setForeground(createForegroundInfo(title, channelInfo.name, currentIndex, qty))

Pair(channelInfo, channelTab)
channelInfo to channelTab
}
}.awaitAll()
}
Expand Down

0 comments on commit 6383777

Please sign in to comment.