Skip to content

Commit

Permalink
add/#9 : showToast 확장 함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed Jun 6, 2024
1 parent 8f97d65 commit 45e0c2e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sopt.now.test.core.util.fragment

import android.widget.Toast
import androidx.fragment.app.Fragment

fun Fragment.showToast(message: String) {
Toast.makeText(requireContext(), message, Toast.LENGTH_SHORT).show()
}

0 comments on commit 45e0c2e

Please sign in to comment.