Skip to content

Commit

Permalink
Fix screen stack going back to home screen on config changes (#807)
Browse files Browse the repository at this point in the history
fixes #726
  • Loading branch information
msasikanth authored Feb 23, 2025
1 parent 8cdc155 commit f2e814a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ class AppPresenter(
// are finished and we can navigate to next screen
scope.launch {
withContext(dispatchersProvider.io) { rssRepository.numberOfFeeds().firstOrNull() }
navigation.replaceAll(Config.Home)
if (screenStack.active.instance is Screen.Placeholder) {
navigation.replaceAll(Config.Home)
}
}
}

Expand Down

0 comments on commit f2e814a

Please sign in to comment.