Skip to content

Commit

Permalink
Refactoring - 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jisungbin committed Nov 8, 2021
1 parent 16a1c3a commit 259f5a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GitMessengerBot © 2021 지성빈 & 구환. all rights reserved.
* GitMessengerBot license is under the GPL-3.0.
*
* [UI.kt] created by Ji Sungbin on 21. 8. 30. 오후 5:06
* [toast.kt] created by Ji Sungbin on 21. 8. 30. 오후 5:06
*
* Please see: https://github.com/GitMessengerBot/GitMessengerBot-Android/blob/master/LICENSE.
*/
Expand All @@ -13,9 +13,9 @@ import android.app.Activity
import android.content.Context
import android.widget.Toast

fun toast(activity: Activity, message: String, length: Int = Toast.LENGTH_SHORT) {
activity.runOnUiThread {
toast(activity, message, length)
fun Activity.toast(message: String, length: Int = Toast.LENGTH_SHORT) {
runOnUiThread {
toast(this, message, length)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GitMessengerBot © 2021 지성빈 & 구환. all rights reserved.
* GitMessengerBot license is under the GPL-3.0.
*
* [UI.kt] created by Ji Sungbin on 21. 7. 10. 오전 11:35.
* [toast.kt] created by Ji Sungbin on 21. 7. 10. 오전 11:35.
*
* Please see: https://github.com/GitMessengerBot/GitMessengerBot-Android/blob/master/LICENSE.
*/
Expand Down

0 comments on commit 259f5a3

Please sign in to comment.