mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 11:19:01 +00:00
Merge pull request #1761 from HabitRPG/Fixes#1756
Fixes#1716 - Fix party launch not working reliably
This commit is contained in:
commit
be23d2952d
1 changed files with 5 additions and 2 deletions
|
|
@ -287,9 +287,12 @@ open class MainActivity : BaseActivity(), SnackbarActivity {
|
|||
MainNavigationController.setup(navigationController)
|
||||
navigationController.addOnDestinationChangedListener { _, destination, arguments -> updateToolbarTitle(destination, arguments) }
|
||||
|
||||
|
||||
if (launchScreen == "/party") {
|
||||
if (viewModel.userViewModel.isUserInParty) {
|
||||
MainNavigationController.navigate(R.id.partyFragment)
|
||||
viewModel.user.observeOnce(this) {
|
||||
if (viewModel.userViewModel.isUserInParty) {
|
||||
MainNavigationController.navigate(R.id.partyFragment)
|
||||
}
|
||||
}
|
||||
}
|
||||
launchScreen = null
|
||||
|
|
|
|||
Loading…
Reference in a new issue