Skip to content

Commit

Permalink
[CHORE/#374] 투표 딜레이 시간 조정 및 flow job cancel 시점 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
b1urrrr committed Feb 7, 2024
1 parent 0c71547 commit ebc737e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main
is Loading -> return@onEach
is Success -> {
if (!state.data.isAvailable) return@onEach
coroutineContext.job.cancel()
NoticeDialog.newInstance(
imageUrl = state.data.imageUrl,
redirectUrl = state.data.redirectUrl,
).show(supportFragmentManager, TAG_NOTICE_DIALOG)
coroutineContext.job.cancel()
}

is Failure -> yelloSnackbar(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,6 @@ class VoteViewModel @Inject constructor(
private const val ID_EMPTY_USER = -1

// TODO: delay 없이 해결 가능한 방법 찾아보기
private const val DURATION_VIEW_SETTING = 500L
private const val DURATION_VIEW_SETTING = 600L
}
}

0 comments on commit ebc737e

Please sign in to comment.