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
The Tor Project
Applications
android-components
Commits
638375ff
Commit
638375ff
authored
Mar 02, 2020
by
Jonathan Almeida
Browse files
Closes #6143: Do not show Desktop mode if no selected session
parent
daa3595a
Changes
1
Hide whitespace changes
Inline
Side-by-side
samples/browser/src/main/java/org/mozilla/samples/browser/DefaultComponents.kt
View file @
638375ff
...
...
@@ -261,6 +261,8 @@ open class DefaultComponents(private val applicationContext: Context) {
sessionManager
.
selectedSessionOrThrow
.
desktopMode
})
{
checked
->
sessionUseCases
.
requestDesktopSite
(
checked
)
}.
apply
{
visible
=
{
sessionManager
.
selectedSession
!=
null
}
}
)
items
.
add
(
...
...
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