[components] For https://github.com/mozilla-mobile/android-components/issues/12882...
commit045dca9a70f6d9ce93e2ffda433ed966f182bcdc
authorMugurell <Mugurell@users.noreply.github.com>
Mon, 3 Oct 2022 16:01:44 +0000 (3 19:01 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 18 Oct 2022 14:23:15 +0000 (18 14:23 +0000)
tree521385c44a13316f77251a2ea01f16eb1263f75f
parent226a4d2e8aed45c896ed4d266898402aedbfb282
[components] For https://github.com/mozilla-mobile/android-components/issues/12882: Allow the QR functionality to be queried an resumed.

Clients can query the QRFragment for isScanInProgress and decide on whether to
resume scanning by calling `scan` in a new `QRFeature` instance.
This may be needed if the process is restarted as a followup to the user
updating system permissions for the app which would recreate the component
owning the QRFeature.
mobile/android/android-components/components/feature/qr/src/main/java/mozilla/components/feature/qr/QrFeature.kt
mobile/android/android-components/components/feature/qr/src/main/java/mozilla/components/feature/qr/QrFragment.kt
mobile/android/android-components/components/feature/qr/src/test/java/mozilla/components/feature/qr/QrFeatureTest.kt
mobile/android/android-components/components/feature/qr/src/test/java/mozilla/components/feature/qr/QrFragmentTest.kt
mobile/android/android-components/docs/changelog.md