Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# [Fix] Fragment에서 lifecycleOwner 문제 해결, 리팩터링 #216

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

ycj1212
Copy link
Collaborator

@ycj1212 ycj1212 commented Apr 2, 2022

문제

안드로이드 버전 12에서 앱을 실행했을 때 메뉴 화면에 진입할 때 앱이 종료되는 오류가 발생

원인

Fragment에서 LiveData를 observe 할 때 lifecycleOwner 사용이 문제

해결

lifecycleOwner 대신 viewLifeCycle을 사용

@ycj1212 ycj1212 closed this Apr 2, 2022
@ycj1212 ycj1212 deleted the hotfix branch April 2, 2022 16:22
@ycj1212 ycj1212 restored the hotfix branch April 2, 2022 16:23
@ycj1212 ycj1212 deleted the hotfix branch April 2, 2022 16:23
@ycj1212 ycj1212 restored the hotfix branch April 2, 2022 16:26
@ycj1212 ycj1212 reopened this Apr 2, 2022
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.

1 participant