[fenix] For https://github.com/mozilla-mobile/fenix/issues/27228 - Resume qr scanning...
commitb63a4cdf6cd5b9681659a1f2612c5a7b9a508c55
authorMugurell <Mugurell@users.noreply.github.com>
Tue, 4 Oct 2022 14:42:28 +0000 (4 17:42 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 21 Nov 2022 15:22:24 +0000 (21 15:22 +0000)
tree8bddf847c79191562583ce0b8b88dd6f2713631b
parent519f6382474108adb47e1ed93b75f3403d56aa7b
[fenix] For https://github.com/mozilla-mobile/fenix/issues/27228 - Resume qr scanning if camera permission is changed

If permissions are changed the app process is restarted with the same
happening for the previously running app components.
SearchDialogFragment used for searches will check if qr scanning was in
progress and resume if needed.
PairFragment used for signing-in will start scanning on itself.

Android-Components will avoid resuming the scan functionality if the camera
permission is missing and so allow to request the permission again without the
camera permission related system calls causing issues.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt