Skip to content

Commit

Permalink
Merge pull request #446 from team-yello/add/#444-no-friend-click
Browse files Browse the repository at this point in the history
[ADD/#445] 탈퇴 사유 이동 플로우 추가
  • Loading branch information
minju1459 authored Jun 9, 2024
2 parents 4454ded + 78f6744 commit 0d6b80a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ProfileQuitReasonActivity :
private var clickedItemPosition: Int = RecyclerView.NO_POSITION
private var isItemClicked: Boolean = false
private var profileQuitInviteDialog: ProfileQuitInviteDialog? = null
private var profileQuitDialog: ProfileQuitDialog? = null

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down Expand Up @@ -65,8 +66,13 @@ class ProfileQuitReasonActivity :

private fun initInviteDialogBtnListener() {
binding.btnProfileQuitReasonDone.setOnSingleClickListener {
profileQuitInviteDialog = ProfileQuitInviteDialog()
profileQuitInviteDialog?.show(supportFragmentManager, QUIT_DIALOG)
if (clickedItemPosition == 0) {
profileQuitInviteDialog = ProfileQuitInviteDialog()
profileQuitInviteDialog?.show(supportFragmentManager, QUIT_DIALOG)
} else {
profileQuitDialog = ProfileQuitDialog()
profileQuitDialog?.show(supportFragmentManager, QUIT_DIALOG)
}
}
}

Expand Down Expand Up @@ -97,6 +103,7 @@ class ProfileQuitReasonActivity :
override fun onDestroy() {
super.onDestroy()
profileQuitInviteDialog?.dismiss()
profileQuitDialog?.dismiss()
_adapter = null
}

Expand Down
2 changes: 1 addition & 1 deletion build-logic/convention/src/main/kotlin/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ object Constants {
const val compileSdk = 33
const val minSdk = 28
const val targetSdk = 33
const val versionCode = 46
const val versionCode = 47
const val versionName = "2.1"
const val jvmVersion = "17"
}

0 comments on commit 0d6b80a

Please sign in to comment.