MS-154 camera permission improvement#699
Conversation
1a6ebad to
6490dbe
Compare
|
The coverage is as good as it gets since the "uncovered" lines should have been excluded in the first place. |
|
Would it be possible to record a video of how the permission handling currently looks like? Considering that these changes aim to improve UI, I'd like us to handle both The state of the permission response can be summarized in the following way:
|
|
For now, I just replicated our flow in the fingerprint connection with the fullscreen alert in case the initial dialog is rejected. There is a lot of room for improvement. Screen_recording_20240425_142527.mp4 |
In Fingerprint the alert is dismissed when you tap the settings button so when you come back you don't have to press retry. Permissions are checked in the Fragment's onResume() so if user didn't grant the permission, alert would be displayed again. Not a big deal but nice to have. |
BurningAXE
left a comment
There was a problem hiding this comment.
So much boilerplate needed to add a new alert :(
|
|
||
| AlertError.ACTION_RETRY, AlertContract.ALERT_BUTTON_PRESSED_BACK -> { | ||
| shouldRequestPermissions = true | ||
| // viewModel.recapture() |
There was a problem hiding this comment.
Should this be deleted?
In this case, the boilerplate is more due to the navigation to the settings (i.e. out of the app) and the camera lifecycle handling. |
6490dbe to
762b648
Compare
762b648 to
8ded625
Compare
|
Could you please verify that the following scenarios would not disturb the UX:
|
17608b9 to
14ef74d
Compare
|
Simple deny/allow permission flow: Screen_recording_20240523_144111.mp4Flow with "Don't ask again" and closing settings with and without providing permission: Screen_recording_20240523_144232.mp4As you can the alert is shown the first time the screen is opened without permission and with the "Don't ask again" flag. Once the alert if permission is not provided, the exit form will be shown on the next retry. This allows us to force the user into either giving permission or explicitly exiting the flow, IMO this is the clearest way to handle it. |
|
I agree with Alex that showing the exit form without user requesting it might be confusing. I'd keep the user on the same screen asking for permissions until they either give permissions or press the back button to explicitly go to the exit form. IMO this is handled pretty well for fingerprint and we should copy the behaviour to face. |
14ef74d to
f8a1995
Compare
0d7f7fc to
6fcb3b3
Compare
|
@alexandr-simprints @BurningAXE Redid the screen with significant simplification. No more separate alert screens and juggling navigation. |
6fcb3b3 to
c78164c
Compare
|
|
@luhmirin-s could you please share a video similar to how you did it last time? |
Screen_recording_20240606_165721.mp4 |




Added an extra state in "LiveFeedbackFragment" to ask for permission if not granted before.
PS. The old version with the separate alert screen has been scrapped as overly complex.