Skip to content

Commit

Permalink
issue boostcampwm-2022#171 chore: error 주석처리
Browse files Browse the repository at this point in the history
Co-authored-by: junhyeongleeee <[email protected]>
  • Loading branch information
junhyeongleeee committed Jul 25, 2023
1 parent 4483499 commit 2dc079a
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.boostcamp.dailyfilm.presentation.uploadfilm

import android.animation.ValueAnimator
import android.content.Context
import android.content.Intent
import android.os.Build
Expand All @@ -15,18 +14,13 @@ import androidx.lifecycle.repeatOnLifecycle
import com.boostcamp.dailyfilm.R
import com.boostcamp.dailyfilm.databinding.ActivityUploadFilmBinding
import com.boostcamp.dailyfilm.presentation.BaseActivity
import com.boostcamp.dailyfilm.presentation.calendar.CalendarActivity
import com.boostcamp.dailyfilm.presentation.calendar.DateFragment.Companion.KEY_CALENDAR_INDEX
import com.boostcamp.dailyfilm.presentation.playfilm.PlayFilmActivity
import com.boostcamp.dailyfilm.presentation.playfilm.PlayFilmFragment.Companion.KET_EDIT_TEXT
import com.boostcamp.dailyfilm.presentation.playfilm.PlayFilmFragment.Companion.KEY_DATE_MODEL
import com.boostcamp.dailyfilm.presentation.playfilm.model.EditState
import com.boostcamp.dailyfilm.presentation.selectvideo.SelectVideoActivity
import com.boostcamp.dailyfilm.presentation.trimvideo.TrimVideoActivity
import com.boostcamp.dailyfilm.presentation.util.LottieDialogFragment
import com.boostcamp.dailyfilm.presentation.util.UiState
import com.boostcamp.dailyfilm.presentation.util.network.NetworkManager
import com.boostcamp.dailyfilm.presentation.util.network.NetworkState
import com.boostcamp.dailyfilm.presentation.util.UiState
import com.boostcamp.dailyfilm.presentation.util.network.networkAlertDialog
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.android.material.snackbar.Snackbar
Expand Down Expand Up @@ -72,7 +66,7 @@ class UploadFilmActivity : BaseActivity<ActivityUploadFilmBinding>(R.layout.acti
when (state) {
is UiState.Success -> {
loadingDialogFragment.hideProgressDialog()
when (viewModel.editState) {
/*when (viewModel.editState) {
EditState.EDIT_CONTENT -> {
setResult(
RESULT_OK,
Expand All @@ -96,7 +90,7 @@ class UploadFilmActivity : BaseActivity<ActivityUploadFilmBinding>(R.layout.acti
}
)
}
}
}*/
finish()
}
is UiState.Loading -> {
Expand Down Expand Up @@ -159,7 +153,7 @@ class UploadFilmActivity : BaseActivity<ActivityUploadFilmBinding>(R.layout.acti
putExtra(SelectVideoActivity.DATE_VIDEO_ITEM, viewModel.beforeItem)
putExtra(TrimVideoActivity.KEY_DATE_MODEL, viewModel.dateModel)
putExtra(KEY_CALENDAR_INDEX, viewModel.calendarIndex)
putExtra(CalendarActivity.KEY_EDIT_STATE, viewModel.editState)
// putExtra(CalendarActivity.KEY_EDIT_STATE, viewModel.editState)
}
)
}
Expand All @@ -173,7 +167,7 @@ class UploadFilmActivity : BaseActivity<ActivityUploadFilmBinding>(R.layout.acti
private fun soundControl() {
lifecycleScope.launch {
repeatOnLifecycle(Lifecycle.State.STARTED) {
viewModel.clickSound.collect { check ->
/*viewModel.clickSound.collect { check ->
if (check) {
binding.backgroundPlayer.player?.volume = 0.5f
val animator = ValueAnimator.ofFloat(0.5f, 1.0f).setDuration(500)
Expand All @@ -191,7 +185,7 @@ class UploadFilmActivity : BaseActivity<ActivityUploadFilmBinding>(R.layout.acti
}
animator.start()
}
}
}*/
}
}
}
Expand Down

0 comments on commit 2dc079a

Please sign in to comment.