Skip to content

Commit

Permalink
minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishangohel committed Mar 30, 2020
1 parent ac37e69 commit bd6be36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/build
# Built application files
*.apk
*.aar
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/kishan/library/ktoaster/ToastMessage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ object ToastMessage : Throwable("ToastMessage is not initialized") {
s(context.resources.getString(message))
}

fun s(message: String, isShort: Boolean = true) {
fun s(message: String) {
Toast.makeText(context, message, Toast.LENGTH_SHORT).show()
}

fun l(@StringRes message: Int) {
l(context.resources.getString(message))
}

fun l(message: String, isShort: Boolean = true) {
fun l(message: String) {
Toast.makeText(context, message, Toast.LENGTH_LONG).show()
}
}

0 comments on commit bd6be36

Please sign in to comment.