diff --git a/refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java b/refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java index 74078c41..d40a6f16 100644 --- a/refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java +++ b/refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java @@ -385,6 +385,10 @@ public boolean autoOpen(int duration, float dragRate, final boolean animationOnl //如果显示背景,使用旧版的 autoRefresh 动画 return false; } + if (mKernel == null) { + //如果必要的组件没有初始化,也使用旧版动画 autoRefresh 动画 + return false; + } final View circleView = mCircleView; circleView.setAlpha(1); circleView.setScaleX(0);