Get rid of unused extensions
This commit is contained in:
committed by
Aayush Gupta
parent
282a4eb72e
commit
08d174b445
@@ -31,18 +31,6 @@ fun Context.toast(text: CharSequence) = runOnUiThread {
|
||||
Toast.makeText(this, text, Toast.LENGTH_SHORT).apply { show() }
|
||||
}
|
||||
|
||||
fun Context.toastLong(resId: Int) = runOnUiThread {
|
||||
Toast.makeText(this, resId, Toast.LENGTH_LONG).apply { show() }
|
||||
}
|
||||
|
||||
fun Context.toastLong(text: CharSequence) = runOnUiThread {
|
||||
Toast.makeText(this, text, Toast.LENGTH_LONG).apply { show() }
|
||||
}
|
||||
|
||||
fun Fragment.toast(resId: Int) = requireContext().toast(resId)
|
||||
|
||||
fun Fragment.toast(text: CharSequence) = requireContext().toast(text)
|
||||
|
||||
fun Fragment.toastLong(resId: Int) = requireContext().toastLong(resId)
|
||||
|
||||
fun Fragment.toastLong(text: CharSequence) = requireContext().toastLong(text)
|
||||
|
||||
Reference in New Issue
Block a user