Skip to content

Commit eb4b9a8

Browse files
author
Aries Hoo²⁰¹⁹
authored
Update ToastUtil.java
修改ToastUtil 关于Andorid P 快速点击Toast无法弹出问题
1 parent 2c10975 commit eb4b9a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ public static final Toast getInstance() {
625625
if (control != null && control.getToast() != null) {
626626
return control.getToast();
627627
}
628-
//目前发现华为Android 9.0版本系统Toast做了单利操作造成短信时间快速Toast 后面无法弹出问题
629-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && RomUtil.isEMUI()) {
628+
//目前发现Android 9.0版本系统Toast做了单例操作造成短时间快速Toast 后面无法弹出问题
629+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
630630
return new Toast(sContext);
631631
}
632632
return SingleToastHolder.INSTANCE.getToast();

0 commit comments

Comments
 (0)