mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-07 05:17:56 +00:00
Use Kotlin Pair
This commit is contained in:

committed by
Profpatsch

parent
60586c90d6
commit
21973b362a
@@ -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
|
||||
|
@@ -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
|
||||
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user