mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
fix issue with reloading after joining party
This commit is contained in:
parent
ad4a16d901
commit
8252969a26
4 changed files with 4 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ import com.habitrpg.android.habitica.ui.views.HabiticaSnackbar.SnackbarDisplayTy
|
|||
import com.habitrpg.android.habitica.ui.views.dialogs.HabiticaAlertDialog
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import javax.inject.Inject
|
||||
import kotlin.time.DurationUnit
|
||||
import kotlin.time.toDuration
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class NoPartyFragmentFragment : BaseMainFragment<FragmentNoPartyBinding>() {
|
|||
binding?.invitationsView?.acceptCall = {
|
||||
lifecycleScope.launch(ExceptionHandler.coroutine()) {
|
||||
socialRepository.joinGroup(it)
|
||||
userRepository.retrieveUser(false)
|
||||
userRepository.retrieveUser(false, true)
|
||||
parentFragmentManager.popBackStack()
|
||||
MainNavigationController.navigate(
|
||||
R.id.partyFragment,
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class PartyFragment : BaseMainFragment<FragmentViewpagerBinding>() {
|
|||
}
|
||||
|
||||
@Suppress("ReturnCount")
|
||||
override fun onOpFtionsItemSelected(item: MenuItem): Boolean {
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
when (item.itemId) {
|
||||
R.id.menu_invite_item -> {
|
||||
val intent = Intent(mainActivity, GroupInviteActivity::class.java)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
New in 4.1.8:
|
||||
-Fixed various for: item names, chat refreshing, shared task creation, and duplicate items
|
||||
-Fixed various for: item names, shared task creation, and duplicate items
|
||||
-You can view, complete, assign, and add tasks to your Group Plan's shared task board!
|
||||
-Tap your name on a task screen to switch to different task boards
|
||||
-More intuitive system notification settings
|
||||
|
|
|
|||
Loading…
Reference in a new issue