Skip to content

Commit

Permalink
修复Drawer弹窗dismissOnTouchOutside(false)无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Nov 19, 2022
1 parent 3d15249 commit 9a1a213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ public void onSelect(int position, String text) {
// .asCustom(new CustomDrawerPopupView(getContext()))
// .hasShadowBg(false)
// .maxWidth(100)
.dismissOnTouchOutside(false)
.isViewMode(true) //使用了Fragment,必须开启View模式
.asCustom(new PagerDrawerPopup(getContext()))
// .asCustom(new ListDrawerPopupView(getContext()))
Expand All @@ -404,6 +405,7 @@ public void onSelect(int position, String text) {
// .isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
.autoOpenSoftInput(true)
// .popupWidth(300)
.dismissOnTouchOutside(false)
.popupPosition(PopupPosition.Right)//右边
// .hasStatusBarShadow(true) //启用状态栏阴影
.setPopupCallback(new DemoXPopupListener())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void onClick(View v) {
if(popupInfo.xPopupCallback!=null){
popupInfo.xPopupCallback.onClickOutside(DrawerPopupView.this);
}
if(popupInfo.isDismissOnTouchOutside!=null){
if(popupInfo.isDismissOnTouchOutside){
dismiss();
}
}
Expand Down

0 comments on commit 9a1a213

Please sign in to comment.