Skip to content

Commit

Permalink
Version 1.4.0 ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrenderG committed Jan 22, 2019
1 parent a56b186 commit 90a4423
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this to your module's `build.gradle` file (make sure the version matches the
```gradle
dependencies {
...
implementation 'com.github.GrenderG:Toasty:1.3.1'
implementation 'com.github.GrenderG:Toasty:1.4.0'
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ext {

supportLibVersion = '28.0.0'

versionCode = 131
versionName = '1.3.1'
versionCode = 140
versionName = '1.4.0'
}

task clean(type: Delete) {
Expand Down
7 changes: 3 additions & 4 deletions toasty/src/main/java/es/dmoral/toasty/Toasty.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ public static Toast custom(@NonNull Context context, @NonNull CharSequence messa
if (withIcon) {
if (icon == null)
throw new IllegalArgumentException("Avoid passing 'icon' as null if 'withIcon' is set to true");
if (tintIcon)
icon = ToastyUtils.tintIcon(icon, textColor);
ToastyUtils.setBackground(toastIcon, icon);
ToastyUtils.setBackground(toastIcon, tintIcon ? ToastyUtils.tintIcon(icon, textColor) : icon);
} else {
toastIcon.setVisibility(View.GONE);
}
Expand All @@ -325,7 +323,8 @@ public static Toast custom(@NonNull Context context, @NonNull CharSequence messa
currentToast.setView(toastLayout);

if (!allowQueue){
if (lastToast != null) lastToast.cancel();
if (lastToast != null)
lastToast.cancel();
lastToast = currentToast;
}

Expand Down

0 comments on commit 90a4423

Please sign in to comment.