|
|
@ -55,6 +55,7 @@ class ChangeSourceDialog : DialogFragment(), |
|
|
|
savedInstanceState: Bundle? |
|
|
|
savedInstanceState: Bundle? |
|
|
|
): View? { |
|
|
|
): View? { |
|
|
|
viewModel = getViewModel(ChangeSourceViewModel::class.java) |
|
|
|
viewModel = getViewModel(ChangeSourceViewModel::class.java) |
|
|
|
|
|
|
|
viewModel.callBack = this |
|
|
|
return inflater.inflate(R.layout.dialog_change_source, container) |
|
|
|
return inflater.inflate(R.layout.dialog_change_source, container) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -92,7 +93,6 @@ class ChangeSourceDialog : DialogFragment(), |
|
|
|
DividerItemDecoration(requireContext(), LinearLayout.VERTICAL) |
|
|
|
DividerItemDecoration(requireContext(), LinearLayout.VERTICAL) |
|
|
|
) |
|
|
|
) |
|
|
|
recycler_view.adapter = changeSourceAdapter |
|
|
|
recycler_view.adapter = changeSourceAdapter |
|
|
|
viewModel.callBack = this |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun initSearchView() { |
|
|
|
private fun initSearchView() { |
|
|
|