mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +00:00
Reset party to noParty after leaving group
Loads noParty when user leaves a group.
This commit is contained in:
parent
a7b473867d
commit
9d6d2db311
1 changed files with 2 additions and 0 deletions
|
|
@ -359,11 +359,13 @@ class PartyDetailFragment : BaseFragment() {
|
|||
alert.addButton(R.string.keep_challenges, true) { _, _ ->
|
||||
viewModel?.leaveGroup(true) {
|
||||
fragmentManager?.popBackStack()
|
||||
MainNavigationController.navigate(R.id.noPartyFragment)
|
||||
}
|
||||
}
|
||||
alert.addButton(R.string.leave_challenges, true) { _, _ ->
|
||||
viewModel?.leaveGroup(false) {
|
||||
fragmentManager?.popBackStack()
|
||||
MainNavigationController.navigate(R.id.noPartyFragment)
|
||||
}
|
||||
}
|
||||
alert.addButton(R.string.no, false)
|
||||
|
|
|
|||
Loading…
Reference in a new issue