|
@@ -63,7 +63,7 @@ class ImportBookSourceDialog() : BaseBottomSheetDialogFragment(R.layout.dialog_r
|
|
|
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
|
|
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {
|
|
|
//binding.toolBar.setBackgroundColor(primaryColor)
|
|
//binding.toolBar.setBackgroundColor(primaryColor)
|
|
|
binding.toolBar.setTitle(R.string.import_book_source)
|
|
binding.toolBar.setTitle(R.string.import_book_source)
|
|
|
- //binding.rotateLoading.visible()
|
|
|
|
|
|
|
+ binding.rotateLoading.visible()
|
|
|
initMenu()
|
|
initMenu()
|
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(requireContext())
|
|
binding.recyclerView.layoutManager = LinearLayoutManager(requireContext())
|
|
|
binding.recyclerView.adapter = adapter
|
|
binding.recyclerView.adapter = adapter
|
|
@@ -92,14 +92,14 @@ class ImportBookSourceDialog() : BaseBottomSheetDialogFragment(R.layout.dialog_r
|
|
|
upSelectText()
|
|
upSelectText()
|
|
|
}
|
|
}
|
|
|
viewModel.errorLiveData.observe(this) {
|
|
viewModel.errorLiveData.observe(this) {
|
|
|
- //binding.rotateLoading.gone()
|
|
|
|
|
|
|
+ binding.rotateLoading.gone()
|
|
|
binding.tvMsg.apply {
|
|
binding.tvMsg.apply {
|
|
|
text = it
|
|
text = it
|
|
|
visible()
|
|
visible()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
viewModel.successLiveData.observe(this) {
|
|
viewModel.successLiveData.observe(this) {
|
|
|
- //binding.rotateLoading.gone()
|
|
|
|
|
|
|
+ binding.rotateLoading.gone()
|
|
|
if (it > 0) {
|
|
if (it > 0) {
|
|
|
adapter.setItems(viewModel.allSources)
|
|
adapter.setItems(viewModel.allSources)
|
|
|
upSelectText()
|
|
upSelectText()
|