Comments (13)
@ping999 好的,我稍后看看
from basepopup.
@ping999 请问您用的是哪个版本
from basepopup.
你好!用的是v1.3.0
from basepopup.
@ping999 ok了,更新到1.4.3试试
from basepopup.
@ping999 如果更新后没问题,这个issue由您关闭了哦
from basepopup.
好的,感谢!
from basepopup.
不用-V- 如果有什么改进意见或者bug,欢迎继续提issue
from basepopup.
-,还是有这个BUG额
from basepopup.
是这样的,setOnDismissListener在你设置过一次之后,该callback就被传递进去了,从你的代码上看,似乎是想tl_info.isIsSuccessful()的时候才执行。
但是,问题在于如果你有一次成功了,callback被设置进去了,但是下一次没有成功,如果popup被dismiss了,由于callback的存在,所以依然会回调回去的。
因此在你不需要的时候,你应该setOnDismissListener(null);
from basepopup.
OK,感谢,这样可行
from basepopup.
那我把这个issue关咯
from basepopup.
这里按照我的想法,提供两个方法,您可以试试
方法1
public void onSuccess(String s, Call call, Response response) {
TL_info tl_info = GsonUtilsZcyke.GsonToBean(s, TL_info.class);
netLoadingPopup.setOnDismissListener(new BasePopupWindow.OnDismissListener() {
@Override
public void onDismiss() {
if (tl_info.isIsSuccessful()){
startActivityAnim(HWStreamActivity.class);
}else{
showToast("初始化失败,请重试");
}
}
});
}
方法2
public void onSuccess(String s, Call call, Response response) {
TL_info tl_info = GsonUtilsZcyke.GsonToBean(s, TL_info.class);
if (tl_info.isIsSuccessful()) {
netLoadingPopup.setOnDismissListener(new BasePopupWindow.OnDismissListener() {
@Override
public void onDismiss() {
startActivityAnim(HWStreamActivity.class);
}
});
} else {
netLoadingPopup.setOnDismissListener(null);
showToast("初始化失败,请重试");
}
}
from basepopup.
好的
from basepopup.
Related Issues (20)
- setOutSideDismiss=true的时候setOutSideTouchable=true不生效 HOT 1
- Edittext导致背景颜色失效,变成透明(8.0及以下才会出现) HOT 3
- 如何从底部弹出到屏幕中心 HOT 4
- 录屏时,能否屏蔽pop? HOT 1
- 您好,怎么样可以不拦截返回键 HOT 1
- 华为的底部导航条沉浸式失效
- ContentView区域的背景上如何支持事件穿透? HOT 1
- setOutSideTouchable(true)后事件并没有穿透 HOT 4
- 安卓12默认支持Background blur以及Blur behind,希望可以适配一下 HOT 1
- 弹窗背景触摸后透明 HOT 1
- 华为平板(平行世界模式)状态栏无法覆盖问题 HOT 1
- 希望加上弹性动画 HOT 1
- 各位大佬,有没有办法拿到栈顶activity的dialog对象呢? HOT 1
- 使用showPopupWindow(view)的方式显示,动画效果无效 HOT 1
- 希望可以支持Jetpack Startup HOT 1
- 当Context是Activity的时候找不到DecorView HOT 1
- 隐藏导航栏+ 任意位置显示: 弹窗无法放到最低,底部永远留着一个导航栏的高度 HOT 2
- 3.2.1版本maven仓库缺少源码 HOT 2
- 使用hideKeyboardOnShow(false)设置弹窗时不收起键盘不生效
- java.lang.ClassCastException: razerdp.basepopup.WindowManagerProxy cannot be cast to android.view.WindowManagerImpl HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basepopup.