Skip to content
GitLab
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
5c8d737a
Commit
5c8d737a
authored
Oct 01, 2020
by
Alex Catarineu
Committed by
Matthew Finkel
Oct 23, 2020
Browse files
Bug 40061: Do not show "Send to device" in sharing menu
parent
4ce50f6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/share/ShareFragment.kt
View file @
5c8d737a
...
...
@@ -35,7 +35,6 @@ class ShareFragment : AppCompatDialogFragment() {
}
private
lateinit
var
shareInteractor
:
ShareInteractor
private
lateinit
var
shareCloseView
:
ShareCloseView
private
lateinit
var
shareToAccountDevicesView
:
ShareToAccountDevicesView
private
lateinit
var
shareToAppsView
:
ShareToAppsView
override
fun
onAttach
(
context
:
Context
)
{
...
...
@@ -90,9 +89,6 @@ class ShareFragment : AppCompatDialogFragment() {
)
view
.
shareWrapper
.
setOnClickListener
{
shareInteractor
.
onShareClosed
()
}
shareToAccountDevicesView
=
ShareToAccountDevicesView
(
view
.
devicesShareLayout
,
shareInteractor
)
if
(
args
.
showPage
)
{
// Show the previous fragment underneath the share background scrim
// by making it translucent.
...
...
@@ -111,9 +107,6 @@ class ShareFragment : AppCompatDialogFragment() {
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
super
.
onViewCreated
(
view
,
savedInstanceState
)
viewModel
.
devicesList
.
observe
(
viewLifecycleOwner
)
{
devicesShareOptions
->
shareToAccountDevicesView
.
setShareTargets
(
devicesShareOptions
)
}
viewModel
.
appsList
.
observe
(
viewLifecycleOwner
)
{
appsToShareTo
->
shareToAppsView
.
setShareTargets
(
appsToShareTo
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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