diff --git a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentActivity.kt index 178cb01..d66eb47 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentActivity.kt @@ -43,6 +43,7 @@ class AudioContentActivity : BaseActivity<ActivityAudioContentBinding>( ) { if (it.resultCode == Activity.RESULT_OK) { viewModel.page = 1 + viewModel.isLast = false viewModel.getAudioContentList(userId = userId) { finish() } } } diff --git a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentViewModel.kt b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentViewModel.kt index b9f1f8f..feaeeba 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentViewModel.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/AudioContentViewModel.kt @@ -39,7 +39,7 @@ class AudioContentViewModel(private val repository: AudioContentRepository) : Ba PRICE_LOW } - private var isLast = false + var isLast = false var page = 1 private val size = 10 diff --git a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt index 0b47aae..eb8e781 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt @@ -60,10 +60,6 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin private var creatorId: Long = 0 private var refresh = false - set(value) { - field = value - setResult(RESULT_OK) - } private var title = "" @SuppressLint("SetTextI18n") @@ -287,6 +283,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin when (it.itemId) { R.id.menu_modify -> { refresh = true + setResult(RESULT_OK) startActivity( Intent(applicationContext, AudioContentModifyActivity::class.java) .apply {