Skip to content

Commit

Permalink
[refactor]: removed TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Oct 18, 2023
1 parent 6896702 commit 0ab8334
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ class LogsFragment: BaseViewModelFragment<LogsViewModel, FragmentLogsBinding>(),
})

binding.scrollFab.setOnClickListener {
scrollLogToBottom()

if (viewModel.resumeLoggingWithBottomTouch)
viewModel.resume()
else
scrollLogToBottom()
}

viewModel.selectedItems.asLiveData().observe(viewLifecycleOwner) {
Expand All @@ -141,8 +141,6 @@ class LogsFragment: BaseViewModelFragment<LogsViewModel, FragmentLogsBinding>(),
}

viewModel.logs.observe(viewLifecycleOwner) {
// TODO: Understand why all ListAdapters stop working after 15 minutes without submitting null

adapter.submitList(null)
adapter.submitList(it ?: return@observe) {
scrollLogToBottom()
Expand Down

0 comments on commit 0ab8334

Please sign in to comment.