Skip to content

Commit

Permalink
[fix] #137 복사하기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
l2zh committed Mar 31, 2024
1 parent cd02af4 commit a42af29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class GetInviteCodeFragment :
private fun setClipboard() {
val clipboard: ClipboardManager =
requireContext().getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
val inviteCode = binding.tvGetInviteCode.text
val clip = ClipData.newPlainText(INVITE_CODE, inviteCode)

binding.btnGetInviteCodeCopy.setOnSingleClickListener {
val inviteCode = binding.tvGetInviteCode.text
val clip = ClipData.newPlainText(INVITE_CODE, inviteCode)
clipboard.setPrimaryClip(clip)
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2)
setClipBoardToastAnimation()
Expand Down

0 comments on commit a42af29

Please sign in to comment.