2020-06-12 15:44:45 +02:00
|
|
|
package at.connyduck.pixelcat.components.search
|
|
|
|
|
|
|
|
import androidx.fragment.app.viewModels
|
|
|
|
import at.connyduck.pixelcat.R
|
|
|
|
import at.connyduck.pixelcat.dagger.ViewModelFactory
|
|
|
|
import dagger.android.support.DaggerFragment
|
|
|
|
import javax.inject.Inject
|
|
|
|
|
2020-06-12 19:58:15 +02:00
|
|
|
class SearchFragment : DaggerFragment(R.layout.fragment_search) {
|
2020-06-12 15:44:45 +02:00
|
|
|
|
|
|
|
@Inject
|
|
|
|
lateinit var viewModelFactory: ViewModelFactory
|
|
|
|
|
|
|
|
private val searchViewModel: SearchViewModel by viewModels { viewModelFactory }
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
fun newInstance() = SearchFragment()
|
|
|
|
}
|
2020-06-12 19:58:15 +02:00
|
|
|
}
|