Skip to content

Commit aac2067

Browse files
committed
feat: add toast extention
1 parent 3764d0e commit aac2067

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.hjq.toast
2+
3+
/**
4+
* author: Tim Chen
5+
* time : 2020-04-09
6+
* desc :
7+
*/
8+
import android.app.Activity
9+
import android.content.Context
10+
11+
inline fun Activity.toastMe(message: CharSequence) = ToastUtils.show(message)
12+
13+
inline fun Context.toastMe(message: CharSequence) = ToastUtils.show(message)

0 commit comments

Comments
 (0)