mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] Remove autoplay indicator FeatureFlags
This commit is contained in:
parent
45fe74dd6a
commit
03c174437d
@ -52,11 +52,6 @@ object FeatureFlags {
|
||||
@Suppress("MayBeConst")
|
||||
val newMediaSessionApi = true
|
||||
|
||||
/**
|
||||
* Enabled showing site permission indicators in the toolbars.
|
||||
*/
|
||||
val permissionIndicatorsToolbar = Config.channel.isNightlyOrDebug
|
||||
|
||||
/**
|
||||
* Enables experimental WebAuthn support. This implementation should never reach release!
|
||||
*/
|
||||
|
@ -24,7 +24,6 @@ import mozilla.components.feature.toolbar.ToolbarPresenter
|
||||
import mozilla.components.lib.publicsuffixlist.PublicSuffixList
|
||||
import mozilla.components.support.base.feature.LifecycleAwareFeature
|
||||
import mozilla.components.support.ktx.android.view.hideKeyboard
|
||||
import org.mozilla.fenix.FeatureFlags
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.ext.components
|
||||
import org.mozilla.fenix.ext.settings
|
||||
@ -120,20 +119,16 @@ class DefaultToolbarIntegration(
|
||||
listOf(
|
||||
DisplayToolbar.Indicators.TRACKING_PROTECTION,
|
||||
DisplayToolbar.Indicators.SECURITY,
|
||||
DisplayToolbar.Indicators.EMPTY
|
||||
DisplayToolbar.Indicators.EMPTY,
|
||||
DisplayToolbar.Indicators.HIGHLIGHT
|
||||
)
|
||||
} else {
|
||||
listOf(
|
||||
DisplayToolbar.Indicators.SECURITY,
|
||||
DisplayToolbar.Indicators.EMPTY
|
||||
DisplayToolbar.Indicators.EMPTY,
|
||||
DisplayToolbar.Indicators.HIGHLIGHT
|
||||
)
|
||||
}
|
||||
|
||||
if (FeatureFlags.permissionIndicatorsToolbar) {
|
||||
toolbar.display.indicators += DisplayToolbar.Indicators.HIGHLIGHT
|
||||
}
|
||||
|
||||
toolbar.display.displayIndicatorSeparator =
|
||||
context.settings().shouldUseTrackingProtection
|
||||
|
||||
toolbar.display.icons = toolbar.display.icons.copy(
|
||||
|
Loading…
Reference in New Issue
Block a user