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
Runtime permission dialogs behave badly on orientation changes in Android 6, 7 #2571
Comments
In fact, the problem I pointed out is different (but also related to changing device orientation). I created a separate issue which I think we should fix firs. |
Hello @grzesiek2010, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 15 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
@getodk/testers are you able to double-check if this is still a problem or not? |
I'm able to reproduce those steps on Android 8.1, 10, 11 Steps to reproduce the problem
After that there is a dark screen. rotatepermissiondenybackbutton.mp4On Android 13 there is a bit different scenario Steps to reproduce the problem
It is also possible to reproduce that crash on other Android versions if the user follows steps 1-4 and while on the "Loading form" state, taps the hierarchy view button. Another tricky way to reproduce it on some devices is following steps 1-6 but in step 2 the rotation should be done "halfway through" ( starting to rotate the screen and the moment the screen is moved a bit, going back quickly to the initial position - so the screen really didn't rotate). |
Rotating the screen while different permissions are displayed and then tapping "deny" results in the dialog to "open settings"/"ok" not appearing. Should I file a separate issue or add steps to reproduce here? |
@dbemke I think adding repro steps here is good, as I imagine it'll be a good thing to work on at the same time as fixing everything else here. |
ODK Collect versionthe store version 2022.4.4, the master faf9891 Android version8.1, 10, 13 Device usedNexus 5X, Galaxy M12, Pixel 6a Problem descriptionAfter rotating the screen while a permission dialog is displayed in widgets (that required granting some permissions: image widget, video widget and geo widgets) and tapping "deny", there is no dialog with "open settings”/”ok”. Steps to reproduce the problem
Expected behaviorDialog about camera permission (with "open settings”/”ok”) should appear. |
ODK Collect versionthe store version 2022.4.4, the master 30a0e14 Android version8.1, 10, 13 Device usedNexus 5X, Galaxy M12, Pixel 6a Problem descriptionAfter rotating the screen while a permission dialog is displayed while scanning a QR code (to add a project) and tapping "allow”, the scanner doesn’t work and the user needs to click the device back button a few times to go back to the main menu. On Android 13 after rotating the user is unable to tap "allow”. Steps to reproduce the problem
Expected behaviorAfter granting the camera permission the user should be able to scan a QR code. |
Software and hardware versions
Collect v1.17.0-beta.0, Android 6.0 and 7.0
Problem description
From @mmarciniak90 at #2506 (comment) verifying the phone data permission check:
@grzesiek2010 suggests in #2506 (comment) that this is a problem for all of the permission checks.
The best approach to take here needs discussion. Since this is not hugely disruptive, it's not very high priority.
Steps to reproduce the problem
Expected behavior
A single dialog is shown and does the right thing on orientation changes
The text was updated successfully, but these errors were encountered: