|
|
@ -86,7 +86,6 @@ class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListe |
|
|
|
adapter = SourcesAdapter(requireContext()) |
|
|
|
adapter = SourcesAdapter(requireContext()) |
|
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(requireContext()) |
|
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(requireContext()) |
|
|
|
binding.recyclerView.adapter = adapter |
|
|
|
binding.recyclerView.adapter = adapter |
|
|
|
adapter.setItems(viewModel.allSources) |
|
|
|
|
|
|
|
binding.tvCancel.visible() |
|
|
|
binding.tvCancel.visible() |
|
|
|
binding.tvCancel.setOnClickListener { |
|
|
|
binding.tvCancel.setOnClickListener { |
|
|
|
dismissAllowingStateLoss() |
|
|
|
dismissAllowingStateLoss() |
|
|
@ -100,7 +99,6 @@ class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListe |
|
|
|
dismissAllowingStateLoss() |
|
|
|
dismissAllowingStateLoss() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
upSelectText() |
|
|
|
|
|
|
|
binding.tvFooterLeft.visible() |
|
|
|
binding.tvFooterLeft.visible() |
|
|
|
binding.tvFooterLeft.setOnClickListener { |
|
|
|
binding.tvFooterLeft.setOnClickListener { |
|
|
|
val selectAll = viewModel.isSelectAll() |
|
|
|
val selectAll = viewModel.isSelectAll() |
|
|
@ -123,6 +121,7 @@ class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListe |
|
|
|
binding.rotateLoading.hide() |
|
|
|
binding.rotateLoading.hide() |
|
|
|
if (it > 0) { |
|
|
|
if (it > 0) { |
|
|
|
adapter.setItems(viewModel.allSources) |
|
|
|
adapter.setItems(viewModel.allSources) |
|
|
|
|
|
|
|
upSelectText() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
binding.tvMsg.apply { |
|
|
|
binding.tvMsg.apply { |
|
|
|
setText(R.string.wrong_format) |
|
|
|
setText(R.string.wrong_format) |
|
|
|