Skip to content

Commit 0fcc53a

Browse files
author
Aries Hoo
authored
Update ToastUtil.java
1 parent c9eb76e commit 0fcc53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/aries/library/fast/util/ToastUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private static void showToast(CharSequence content, boolean isShowRunningForegro
184184
builder.gravityYOffset > -1 ? builder.gravityYOffset :
185185
builder.gravity == Gravity.BOTTOM ? SizeUtil.dp2px(64) : 0);
186186
ToastControl control = FastManager.getInstance().getToastControl();
187-
if (content != null) {
187+
if (control != null) {
188188
control.setToast(sSystemToast, sTextView);
189189
}
190190
if (!isShowRunningForeground || (isShowRunningForeground && FastUtil.isRunningForeground(sContext))) {

0 commit comments

Comments
 (0)