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
Gaba
fenix
Commits
68f940ab
Commit
68f940ab
authored
Oct 01, 2020
by
Alex Catarineu
Committed by
Matthew Finkel
Oct 23, 2020
Browse files
Bug 40058: Hide option for disallowing addon in private mode
parent
5c8d737a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/addons/InstalledAddonDetailsFragment.kt
View file @
68f940ab
...
...
@@ -112,7 +112,7 @@ class InstalledAddonDetailsFragment : Fragment() {
runIfFragmentIsAttached
{
this
.
addon
=
it
switch
.
isClickable
=
true
privateBrowsingSwitch
.
isVisible
=
it
.
isEnabled
()
privateBrowsingSwitch
.
isVisible
=
false
privateBrowsingSwitch
.
isChecked
=
it
.
isAllowedInPrivateBrowsing
()
switch
.
setText
(
R
.
string
.
mozac_feature_addons_enabled
)
view
.
settings
.
isVisible
=
shouldSettingsBeVisible
()
...
...
@@ -230,7 +230,7 @@ class InstalledAddonDetailsFragment : Fragment() {
private
fun
bindAllowInPrivateBrowsingSwitch
(
view
:
View
)
{
val
switch
=
view
.
allow_in_private_browsing_switch
switch
.
isChecked
=
addon
.
isAllowedInPrivateBrowsing
()
switch
.
isVisible
=
addon
.
isEnabled
()
switch
.
isVisible
=
false
switch
.
setOnCheckedChangeListener
{
v
,
isChecked
->
val
addonManager
=
v
.
context
.
components
.
addonManager
switch
.
isClickable
=
false
...
...
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