Skip to content

Commit

Permalink
优化通知工具类2
Browse files Browse the repository at this point in the history
  • Loading branch information
ichtj committed Jun 24, 2024
1 parent 759154a commit e101fbb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public class NotifyUtils {
/**
* 是否允许刷新UI
*/
public void setRefreshUi(boolean refreshUi) {
isRefreshUi = refreshUi;
public static void setRefreshUi(boolean refreshUi) {
getInstance().isRefreshUi = refreshUi;
}

/**
Expand Down Expand Up @@ -415,7 +415,7 @@ public static NotifyUtils setmAutoCancel(boolean mAutoCancel) {
* 更改参数时执行
*/
public void exeuNotify() {
if (isRefreshUi){
if (getInstance().isRefreshUi){
if (getInstance().manager != null) {
if (getInstance().notifyId != -1) {
if (getInstance().builder != null) {
Expand Down

0 comments on commit e101fbb

Please sign in to comment.