mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
fix cron dialog disappearing when rotating
This commit is contained in:
parent
7255539dea
commit
2237d638f6
3 changed files with 5 additions and 3 deletions
|
|
@ -582,6 +582,8 @@ open class MainActivity : BaseActivity(), SnackbarActivity {
|
|||
if (binding.content.toolbarTitle.text?.isNotBlank() != true) {
|
||||
navigationController.currentDestination?.let { updateToolbarTitle(it, null) }
|
||||
}
|
||||
|
||||
YesterdailyDialog.showDialogIfNeeded(this, viewModel.userViewModel.userID, userRepository, taskRepository)
|
||||
}
|
||||
|
||||
@RequiresApi(33)
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ class YesterdailyDialog private constructor(
|
|||
dialog.setCancelable(false)
|
||||
dialog.setCanceledOnTouchOutside(false)
|
||||
if (!activity.isFinishing) {
|
||||
dialog.enqueue()
|
||||
dialog.show()
|
||||
}
|
||||
return dialog
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
NAME=4.7.4
|
||||
CODE=12971
|
||||
NAME=4.7.5
|
||||
CODE=12981
|
||||
Loading…
Reference in a new issue