Comments (5)
麻烦提供更多调试信息,发一下DovaTN类中try-catch的异常的截图
from dtoast.
W/WindowManager: Attempted to add a toast window with bad token null.
只有这一条信息
from dtoast.
麻烦加我QQ847736308
from dtoast.
机型:360 1707-A01
问题分析:使用DovaToast时,调用windowManager.addView()失败,且addView方法没有将BadTokenException异常抛出,正常失败应该抛出异常
意外发现:360的这个机型关闭通知权限并不会导致系统Toast无法弹出,与MIUI类似。
解决方案:暂时将该机型加入白名单,在该机型上直接使用SystemToast,近期将提交更新代码,代码提交后我会关闭这个issue
待验证:需要更多360机型验证以下两点,1.是否所有360rom的通知权限都不会影响Toast弹出
2.是否所有360rom的windowManager.addView()失败时都不会抛出异常
from dtoast.
这个问题解决了吗
from dtoast.
Related Issues (20)
- vivo X9手机上的适配 HOT 1
- Can't toast on a thread that has not called Looper.prepare() HOT 3
- Application级别的context不显示吐司啊 ,而且我用Activity级别的,关闭页面吐司立马就关闭了,有的时候是不想立马关闭的 HOT 10
- 调用DToast.cancel()不能立马关闭吐司。
- 切换到Android x架构 HOT 3
- 如何给添加的view上的按钮添加点击事件? HOT 3
- vivo手机上不会弹出toast哦 HOT 7
- 布局可以用系统的布局 不然不同手机布局不一致 HOT 1
- 怎么设置点击事件及自定义大小
- 关闭通知权限时DToast不显示,华为mate8 HOT 2
- Android 11 警告 HOT 3
- Mi Note 3 Android 6.0.1 空指针 HOT 6
- could you please add a license file?
- 频繁弹 DToast 的情况下,土司无法显示 HOT 1
- 关闭通知权限时DToast不显示,华为 HOT 6
- huawei android 8.1 HOT 2
- ActivityToast窗体泄漏 HOT 1
- 关闭通知权限!显示AlertDialog情况下,再点击dialog内容弹出Toast,吐司视图在dialog下方 HOT 3
- 努比亚8.1系统,关闭通知权限DToast不显示 HOT 4
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 dtoast.