From bd6be364b72b704243b0ab7043e3f636c82ec122 Mon Sep 17 00:00:00 2001 From: Kishan Gohel Date: Mon, 30 Mar 2020 15:01:42 +0530 Subject: [PATCH] minor changes. --- .gitignore | 1 - src/main/java/kishan/library/ktoaster/ToastMessage.kt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 70eaa4e..56cc642 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/build # Built application files *.apk *.aar diff --git a/src/main/java/kishan/library/ktoaster/ToastMessage.kt b/src/main/java/kishan/library/ktoaster/ToastMessage.kt index ea376e9..8f46468 100644 --- a/src/main/java/kishan/library/ktoaster/ToastMessage.kt +++ b/src/main/java/kishan/library/ktoaster/ToastMessage.kt @@ -17,7 +17,7 @@ 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() } @@ -25,7 +25,7 @@ object ToastMessage : Throwable("ToastMessage is not initialized") { l(context.resources.getString(message)) } - fun l(message: String, isShort: Boolean = true) { + fun l(message: String) { Toast.makeText(context, message, Toast.LENGTH_LONG).show() } } \ No newline at end of file