-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utilcodex:1.26.0 因为主题不一导致的崩溃 com.blankj.utilcode.util.Utils$TransActivity 不是Theme.AppCompat 主题 #1207
Comments
辛苦你梳理了,你是个明白人哈,这个问题我这边已经解决了,可以试用 utilcode-1.26.1-release0 这个版本看看 |
codex 的还没有,哈哈,那需要等下了 |
好吧 也谢谢大佬的开源精神 😁 |
关于权限结束后的逻辑处理还存在问题/ The version of utilcode: 'com.blankj:utilcodex:1.28.0' |
对呀,现在就是提供给你们这个中转 Activity 给你们使用有问题吗? |
@prczhb 现在提供了这个 Activity 有什么问题吗 |
1.26之前的版本 在弹出权限框后(),回调已获取或拒绝接口,在回调里通过 ActivityUtils.getTopActivity(); 设置一个弹窗,没有问题.弹窗创建时权限的那个activity已经finish了; |
检测权限被拒绝后,我会立刻弹窗提示需要权限,而那个弹窗正好创建在了还未消失的权限activity上, 然后会跟着那个activity一起没了,这样我的逻辑就没啥用了 |
好的,了解了 |
@prczhb 试试 1.28.1 版本可以 |
如图中的执行顺序. 拒绝权限先走的回调,然后才activity,finish |
试试 1.28.1 版本哈,我测试是可以的,不过一般请求权限不都在 Activity 或者 Fragment 的么,你干嘛要非要获取 getTopActivity 呢? |
Describe the bug
申请权限后迅速在回调中显示自己的弹窗 结果崩溃.
A clear and concise description of what the bug is.
The code of bug
The stack of crash
Screenshots
If applicable, add screenshots to help explain your problem.
Please delete the current line and the followings.
Thank you for supporting AndroidUtilCode.
The text was updated successfully, but these errors were encountered: