Skip to content

Commit

Permalink
README.md updated to latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sami286 committed Jan 15, 2019
1 parent 4381574 commit 59448a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@ This step is optional, but if you want you can configure some Toasty parameters.

```java
Toasty.Config.getInstance()
.setErrorColor(@ColorInt int errorColor) // optional
.setInfoColor(@ColorInt int infoColor) // optional
.setSuccessColor(@ColorInt int successColor) // optional
.setWarningColor(@ColorInt int warningColor) // optional
.setTextColor(@ColorInt int textColor) // optional
.tintIcon(boolean tintIcon) // optional (apply textColor also to the icon)
.setToastTypeface(@NonNull Typeface typeface) // optional
.setTextSize(int sizeInSp) // optional
.allowQueue(boolean allowQueue) // optional (prevents several Toastys from queuing)
.apply(); // required
```

Expand Down
1 change: 1 addition & 0 deletions toasty/src/main/java/es/dmoral/toasty/Toasty.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public static Toast custom(@NonNull Context context, @StringRes int message, Dra
duration, withIcon, shouldTint);
}

@CheckResult
public static Toast custom(@NonNull Context context, @StringRes int message, Drawable icon,
@ColorInt int tintColor, @ColorInt int textColor, int duration,
boolean withIcon, boolean shouldTint) {
Expand Down

0 comments on commit 59448a3

Please sign in to comment.