Skip to content

Commit

Permalink
Merge pull request #544 from Varsha-Kulkarni/issue_536
Browse files Browse the repository at this point in the history
Fix issue 536 loading of progress indefinitely when no notes available
  • Loading branch information
PatilShreyas committed Oct 6, 2022
2 parents 6f26507 + 44cc639 commit 07d4f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ class NotesFragment : BaseFragment<NotesFragmentBinding, NotesState, NotesViewMo

private fun isConnected(): Boolean? = viewModel.currentState.isConnectivityAvailable

private fun shouldSyncNotes() = viewModel.currentState
.let { state -> state.error != null || state.notes.isEmpty() }
private fun shouldSyncNotes() = viewModel.currentState.error != null

override fun getViewBinding(
inflater: LayoutInflater,
Expand Down
4 changes: 2 additions & 2 deletions noty-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ buildscript {
ktorVersion = "1.6.8"
exposedVersion = "0.39.2"
postgresVersion = "42.3.1"
logbackVersion = "1.4.1"
logbackVersion = "1.4.3"
daggerVersion = "2.44"
testContainerVersion = "1.17.4"
testContainerVersion = "1.17.5"
kotestVersion = "5.5.0"
}

Expand Down

0 comments on commit 07d4f50

Please sign in to comment.