Skip to content

Commit

Permalink
Merge pull request #332 from Runnect/feature/fix-mypage-duplicate-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
sxunea authored Feb 16, 2024
2 parents 7a295f9 + 61d91d7 commit e204da4
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import com.runnect.runnect.presentation.discover.DiscoverFragment.Companion.EXTR
import com.runnect.runnect.presentation.discover.model.EditableDiscoverCourse
import com.runnect.runnect.presentation.discover.search.DiscoverSearchActivity
import com.runnect.runnect.presentation.login.LoginActivity
import com.runnect.runnect.presentation.mypage.upload.MyUploadActivity
import com.runnect.runnect.presentation.profile.ProfileActivity
import com.runnect.runnect.presentation.state.UiStateV2
import com.runnect.runnect.util.analytics.Analytics
Expand Down Expand Up @@ -179,7 +178,7 @@ class CourseDetailActivity :
COURSE_STORAGE_SCRAP -> MainActivity.updateStorageScrapScreen()
COURSE_DISCOVER -> setActivityResult<MainActivity>()
COURSE_DISCOVER_SEARCH -> setActivityResult<DiscoverSearchActivity>()
MY_PAGE_UPLOAD_COURSE -> navigateToMyUploadCourseScreen()
MY_PAGE_UPLOAD_COURSE -> finish()
}

finish()
Expand All @@ -198,12 +197,6 @@ class CourseDetailActivity :
}
}

private fun navigateToMyUploadCourseScreen() {
Intent(this, MyUploadActivity::class.java).apply {
startActivity(this)
}
}

private fun addListener() {
initBackButtonClickListener()

Expand Down

0 comments on commit e204da4

Please sign in to comment.