Comments (5)
Yes. Please check this StackOverflow answer by Alex Lockwood as he explains why it is a bad idea to commit fragment transaction in onActivityResult().
There is also another AOSP bug being tracked related to DialogFragments throwing IllegalStateException. It primarily happens when DialogFragment is committed within an OnClickListener so I am not sure if it is relevant in this case
from easypermissions.
It's not clear to me if this is a bug in EasyPermissions or in the application (very likely the latter) but it will be good to investigate and provide guidance to others.
from easypermissions.
Would it be because you are trying to open a DialogFragment within onActivityResult() method?
from easypermissions.
@youfacepalm is doing so a known issue? It's also worth nothing that we only saw this crash on API 23 devices, not 24 or 25 devices.
from easypermissions.
This should be fixed by #75 since we no longer use a DialogFragment
directly but rather launch a transparent 'host' Activity to contain the DialogFragment
.
from easypermissions.
Related Issues (20)
- S
- Android 11 Scoped storage permissions
- onRequestPermissionsResult of fragment is marked deprecated
- Getting location permissions, any of them HOT 1
- Readme example may run into infinite loop
- Android 12: When user grants only coarse location, EasyPermissions incorrectly determines fine location as permanently denied HOT 1
- Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller (has extras) }
- onRequestPermissionsResult not called in non-activity class HOT 1
- onRequestPermissionsResult not called if user presses HOME button
- Vtf HOT 1
- onRequestPermissionsResult() deprecated
- @samtstern This may be the same crash, without obfuscation. I got it during a stress test.
- Request: Make easypermissions library target to android api 33 HOT 4
- doc: inconsistent sample code for AfterPermissionGranted annotation
- h
- b
- the t
- java.lang.NullPointerException
- M HOT 1
- 华为Mate30 鸿蒙3.0 弹窗申请权限,拒绝以后无法再次弹出,也无法弹窗提示,小米正常 HOT 1
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 easypermissions.