|
|
|
@ -20,7 +20,6 @@ import androidx.lifecycle.repeatOnLifecycle
|
|
|
|
|
import androidx.navigation.findNavController
|
|
|
|
|
import androidx.navigation.fragment.navArgs
|
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
|
|
|
import com.google.android.material.divider.MaterialDividerItemDecoration
|
|
|
|
|
import com.google.android.material.transition.MaterialSharedAxis
|
|
|
|
|
import kotlinx.coroutines.flow.collectLatest
|
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
@ -68,15 +67,9 @@ class SettingsFragment : Fragment() {
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
binding.toolbarSettingsLayout.title = getString(args.menuTag.titleId)
|
|
|
|
|
val dividerDecoration = MaterialDividerItemDecoration(
|
|
|
|
|
requireContext(),
|
|
|
|
|
LinearLayoutManager.VERTICAL
|
|
|
|
|
)
|
|
|
|
|
dividerDecoration.isLastItemDecorated = false
|
|
|
|
|
binding.listSettings.apply {
|
|
|
|
|
adapter = settingsAdapter
|
|
|
|
|
layoutManager = LinearLayoutManager(requireContext())
|
|
|
|
|
addItemDecoration(dividerDecoration)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
binding.toolbarSettings.setNavigationOnClickListener {
|
|
|
|
|