Skip to content

Comments

Update dependencies#38

Merged
DanielNovak merged 1 commit intomasterfrom
update_dependencies
Mar 12, 2018
Merged

Update dependencies#38
DanielNovak merged 1 commit intomasterfrom
update_dependencies

Conversation

@zelenasova
Copy link
Collaborator

No description provided.

mViewModel.clearView();
if (fragment.getActivity() != null && fragment.getActivity().isFinishing()) {
removeViewModel(fragment.getActivity());
if (fragment.requireActivity().isFinishing()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a change in behaviour, we need to keep fragment.getActivity() != null && fragment.getActivity().isFinishing() to prevent crashes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that activity shouldn't be null and you just check if activity is finishing. I will rewrite it.

@DanielNovak DanielNovak force-pushed the update_dependencies branch 3 times, most recently from af878fc to 4f61097 Compare March 10, 2018 13:25
@DanielNovak DanielNovak force-pushed the update_dependencies branch from 4f61097 to f84504a Compare March 12, 2018 08:40
@DanielNovak DanielNovak merged commit 0f2bd14 into master Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants