[Fix] 온라인 전환 시 업데이트 재확인 및 강제 업데이트 처리 #559 - #560
Open
edv-Shin wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
오프라인으로 진입한 뒤 온라인으로 전환됐을 때 업데이트를 재확인하고, 강제 업데이트가 필요하면 blocking 다이얼로그를 표시합니다. (#555 후속)
변경 내용
MainViewModel:NetworkMonitor.networkState를 구독해false → true전환 + 콘텐츠 진입 후 조건에서 업데이트 재확인 트리거MainViewModel:onAvailable직후 일시적 네트워크 불안정 대비 1.5초 딜레이 후 재확인MainViewModel: 재확인 실패 시 조용히 무시 (사용자 경험 유지)MainViewModel: 강제 업데이트 감지 시forceUpdateAfterReconnectemitMainActivity: 콘텐츠 진입 시onContentShown()호출로 재확인 조건 활성화MainActivity:forceUpdateAfterReconnect수집 → blocking 다이얼로그 표시트레이드오프
onAvailable감지 후 1.5초 딜레이 동안 앱 사용 가능확인 사항
Closes #559