2020-11-28 00:11:03 +00:00
|
|
|
package com.vanced.manager.feature.home.ui.bind
|
|
|
|
|
2020-11-28 15:58:02 +00:00
|
|
|
import android.util.Log
|
|
|
|
import androidx.lifecycle.coroutineScope
|
2020-11-28 00:11:03 +00:00
|
|
|
import com.vanced.manager.feature.home.databinding.FragmentHomeBinding
|
|
|
|
import com.vanced.manager.feature.home.presentation.HomeViewModel
|
|
|
|
import com.vanced.manager.feature.home.ui.HomeFragment
|
2020-11-28 15:58:02 +00:00
|
|
|
import kotlinx.coroutines.flow.launchIn
|
|
|
|
import kotlinx.coroutines.flow.onEach
|
2020-11-28 00:11:03 +00:00
|
|
|
|
|
|
|
internal fun HomeFragment.bindData(
|
|
|
|
binding: FragmentHomeBinding,
|
|
|
|
viewModel: HomeViewModel
|
|
|
|
) {
|
2020-11-28 15:58:02 +00:00
|
|
|
viewModel.appsList.onEach {
|
|
|
|
Log.d("apps", it.toString())
|
|
|
|
}.launchIn(viewLifecycleOwner.lifecycle.coroutineScope)
|
2020-11-28 00:11:03 +00:00
|
|
|
}
|