Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthew Finkel
fenix
Commits
f4296fb7
Commit
f4296fb7
authored
Aug 03, 2020
by
ekager
Committed by
Jonathan Almeida
Aug 04, 2020
Browse files
For #13179 - Ensure we only dismiss share prompt once
parent
a1a839f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/share/ShareFragment.kt
View file @
f4296fb7
...
...
@@ -43,11 +43,6 @@ class ShareFragment : AppCompatDialogFragment() {
viewModel
.
loadDevicesAndApps
()
}
override
fun
dismiss
()
{
consumePrompt
{
onDismiss
()
}
super
.
dismiss
()
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setStyle
(
STYLE_NO_TITLE
,
R
.
style
.
ShareDialogStyle
)
...
...
@@ -55,6 +50,7 @@ class ShareFragment : AppCompatDialogFragment() {
override
fun
onPause
()
{
super
.
onPause
()
consumePrompt
{
onDismiss
()
}
dismiss
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment