Skip to content

Commit

Permalink
BottomPopupView添加NPE判断
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed May 27, 2021
1 parent d1c061c commit 3fb8f72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void onClose() {

@Override
public void onDrag(int value, float percent, boolean isScrollUp) {
if(popupInfo==null)return;
if(popupInfo.xPopupCallback!=null) popupInfo.xPopupCallback.onDrag(BottomPopupView.this, value, percent,isScrollUp);
if (popupInfo.hasShadowBg && !popupInfo.hasBlurBg) setBackgroundColor(shadowBgAnimator.calculateBgColor(percent));
}
Expand Down

0 comments on commit 3fb8f72

Please sign in to comment.