Skip to content

Commit

Permalink
修复问题:NullPointerException: Attempt to invoke interface method 'onAuto…
Browse files Browse the repository at this point in the history
…RefreshAnimationEnd()' on a null object reference

#1584
  • Loading branch information
wsc committed Sep 15, 2024
1 parent f7ce7bb commit 5876d0d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5876d0d

Please sign in to comment.