|
|
@ -116,6 +116,7 @@ class InstalledAddonDetailsFragment : Fragment() {
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
switch.isClickable = true
|
|
|
|
switch.isClickable = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|
|
|
|
|
switch.setState(addon.isEnabled())
|
|
|
|
showSnackBar(
|
|
|
|
showSnackBar(
|
|
|
|
view,
|
|
|
|
view,
|
|
|
|
getString(
|
|
|
|
getString(
|
|
|
@ -149,6 +150,7 @@ class InstalledAddonDetailsFragment : Fragment() {
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
switch.isClickable = true
|
|
|
|
switch.isClickable = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|
|
|
|
|
switch.setState(addon.isEnabled())
|
|
|
|
showSnackBar(
|
|
|
|
showSnackBar(
|
|
|
|
view,
|
|
|
|
view,
|
|
|
|
getString(
|
|
|
|
getString(
|
|
|
@ -230,6 +232,7 @@ class InstalledAddonDetailsFragment : Fragment() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onError = {
|
|
|
|
onError = {
|
|
|
|
|
|
|
|
switch.isChecked = addon.isAllowedInPrivateBrowsing()
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
runIfFragmentIsAttached {
|
|
|
|
switch.isClickable = true
|
|
|
|
switch.isClickable = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|
view.remove_add_on.isEnabled = true
|
|
|
|