* For https://github.com/mozilla-mobile/fenix/issues/18877 - Support updated PromptRequest AC APIs

This issue stemming from a race condition is fully resolved in AC by adding
support for having multiple prompts at a time.
Fenix needs just a small change to support the AC refactoring.

* Update Android Components version to 91.0.20210603145049

Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
pull/600/head
Mugurell 3 years ago committed by GitHub
parent e24a4cdb42
commit a1d0f1b171

@ -135,10 +135,10 @@ class ShareFragment : AppCompatDialogFragment() {
args.sessionId
?.let { sessionId -> browserStore.state.findTabOrCustomTab(sessionId) }
?.let { tab ->
val promptRequest = tab.content.promptRequest
val promptRequest = tab.content.promptRequests.lastOrNull { it is PromptRequest.Share }
if (promptRequest is PromptRequest.Share) {
consume(promptRequest)
browserStore.dispatch(ContentAction.ConsumePromptRequestAction(tab.id))
browserStore.dispatch(ContentAction.ConsumePromptRequestAction(tab.id, promptRequest))
}
}
}

@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
object AndroidComponents {
const val VERSION = "91.0.20210601143118"
const val VERSION = "91.0.20210603145049"
}

Loading…
Cancel
Save