Skip to content

Commit

Permalink
Fix : RemoteConfig 업데이트 전략 값이 설정되어있지 않을 때 화면이 넘어가지 않는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
DongChyeon committed Nov 7, 2024
1 parent 82d26dc commit 140d7f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ object RemoteConfigUtil {
fun showUpdateDialog(
onForceUpdate: (String, String) -> Unit,
onSoftUpdate: (String) -> Unit,
onOnceUpdate: (String) -> Unit
onOnceUpdate: (String) -> Unit,
onNormalLaunch: () -> Unit
) {
when {
currentVersionCode < minimumVersionCode -> {
Expand All @@ -87,7 +88,7 @@ object RemoteConfigUtil {
UpdateStrategy.FORCE -> onForceUpdate(latestVersionName, updateContent)
UpdateStrategy.SOFT -> onSoftUpdate(latestVersionName)
UpdateStrategy.ONCE -> onOnceUpdate(latestVersionName)
else -> return
else -> onNormalLaunch()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ class SplashViewModel @Inject constructor(
}
}
checkUserStatus()
},
onNormalLaunch = {
checkUserStatus()
}
)
}
Expand Down

0 comments on commit 140d7f3

Please sign in to comment.