mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-09 03:52:12 +03:00
Remove unused fragment param
This commit is contained in:
parent
e35a33edde
commit
3bd3607220
@ -46,7 +46,7 @@ class DownloadHandler(
|
|||||||
var successString: String? = null
|
var successString: String? = null
|
||||||
|
|
||||||
// Launch the Job
|
// Launch the Job
|
||||||
executeTaskWithToast(fragment, {
|
executeTaskWithToast({
|
||||||
val tracksToDownload: List<Track> = tracks
|
val tracksToDownload: List<Track> = tracks
|
||||||
?: getTracksFromServer(isArtist, id!!, isDirectory, name, isShare)
|
?: getTracksFromServer(isArtist, id!!, isDirectory, name, isShare)
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ class DownloadHandler(
|
|||||||
) {
|
) {
|
||||||
var successString: String? = null
|
var successString: String? = null
|
||||||
// Launch the Job
|
// Launch the Job
|
||||||
executeTaskWithToast(fragment, {
|
executeTaskWithToast({
|
||||||
val songs: MutableList<Track> =
|
val songs: MutableList<Track> =
|
||||||
getTracksFromServer(isArtist, id, isDirectory, name, isShare)
|
getTracksFromServer(isArtist, id, isDirectory, name, isShare)
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ object CoroutinePatterns {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun CoroutineScope.executeTaskWithToast(
|
fun CoroutineScope.executeTaskWithToast(
|
||||||
fragment: Fragment,
|
|
||||||
task: suspend CoroutineScope.() -> Unit,
|
task: suspend CoroutineScope.() -> Unit,
|
||||||
successString: () -> String?
|
successString: () -> String?
|
||||||
): Job {
|
): Job {
|
||||||
@ -63,7 +62,7 @@ fun CoroutineScope.executeTaskWithModalDialog(
|
|||||||
successString: () -> String
|
successString: () -> String
|
||||||
) {
|
) {
|
||||||
// Create the job
|
// Create the job
|
||||||
val job = executeTaskWithToast(fragment, task, successString)
|
val job = executeTaskWithToast(task, successString)
|
||||||
|
|
||||||
// Create the dialog
|
// Create the dialog
|
||||||
val builder = InfoDialog.Builder(fragment.requireContext())
|
val builder = InfoDialog.Builder(fragment.requireContext())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user