diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index a5898ce..663ebcc 100644
--- a/README.md
+++ b/README.md
@@ -22,13 +22,15 @@ Add this to your module's `build.gradle` file (make sure the version matches the
```gradle
dependencies {
...
- compile 'com.github.GrenderG:Toasty:1.0'
+ compile 'com.github.GrenderG:Toasty:1.1'
}
```
Usage
--
+Each method always returns a `Toast` object, so you can customize the Toast much more. **DON'T FORGET THE `show()` METHOD!**
+
To display an error Toast:
``` java
@@ -60,7 +62,7 @@ To display the usual Toast with icon:
Toasty.normal(yourContext, "Normal toast w/ icon", yourIconDrawable).show();
```
-You can also create your custom Toasts with the `custom` method:
+You can also create your custom Toasts with the `custom()` method:
``` java
Toasty.custom(yourContext, "I'm a custom Toast", yourIconDrawable, textColor, tintColor, duration, withIcon, true).show();
```
@@ -75,4 +77,4 @@ Screenshots
-
+
\ No newline at end of file
diff --git a/toasty/build.gradle b/toasty/build.gradle
index e8d6e03..fda9f69 100644
--- a/toasty/build.gradle
+++ b/toasty/build.gradle
@@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 25
- versionCode 10
- versionName "1.0"
+ versionCode 11
+ versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
diff --git a/toasty/src/main/java/es/dmoral/toasty/Toasty.java b/toasty/src/main/java/es/dmoral/toasty/Toasty.java
index cb63386..d4e9cd7 100644
--- a/toasty/src/main/java/es/dmoral/toasty/Toasty.java
+++ b/toasty/src/main/java/es/dmoral/toasty/Toasty.java
@@ -61,11 +61,11 @@ public static Toast normal(@NonNull Context context, @NonNull String message, in
}
public static Toast warning(@NonNull Context context, @NonNull String message) {
- return info(context, message, Toast.LENGTH_SHORT, true);
+ return warning(context, message, Toast.LENGTH_SHORT, true);
}
public static Toast warning(@NonNull Context context, @NonNull String message, int duration) {
- return info(context, message, duration, true);
+ return warning(context, message, duration, true);
}
public static Toast warning(@NonNull Context context, @NonNull String message, int duration, boolean withIcon) {
@@ -87,11 +87,11 @@ public static Toast info(@NonNull Context context, @NonNull String message, int
}
public static Toast success(@NonNull Context context, @NonNull String message) {
- return error(context, message, Toast.LENGTH_SHORT, true);
+ return success(context, message, Toast.LENGTH_SHORT, true);
}
public static Toast success(@NonNull Context context, @NonNull String message, int duration) {
- return error(context, message, duration, true);
+ return success(context, message, duration, true);
}
public static Toast success(@NonNull Context context, @NonNull String message, int duration, boolean withIcon) {