mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/19357: Remove bookmarks experiment and keep star-with-line icon.
This commit is contained in:
parent
88a894ed3a
commit
3f404375d3
@ -7,7 +7,6 @@ package org.mozilla.fenix.experiments
|
||||
class Experiments {
|
||||
companion object {
|
||||
const val A_A_NIMBUS_VALIDATION = "fenix-nimbus-validation-v3"
|
||||
const val BOOKMARK_ICON = "fenix-bookmark-list-icon"
|
||||
const val ANDROID_KEYSTORE = "fenix-android-keystore"
|
||||
const val DEFAULT_BROWSER = "fenix-default-browser"
|
||||
}
|
||||
|
@ -133,17 +133,10 @@ class HomeMenu(
|
||||
) {
|
||||
onItemTapped.invoke(Item.WhatsNew)
|
||||
}
|
||||
|
||||
val experiments = context.components.analytics.experiments
|
||||
val bookmarksIcon = experiments.withExperiment(Experiments.BOOKMARK_ICON) {
|
||||
when (it) {
|
||||
ExperimentBranch.TREATMENT -> R.drawable.ic_bookmark_list
|
||||
else -> R.drawable.ic_bookmark_filled
|
||||
}
|
||||
}
|
||||
val bookmarksItem = BrowserMenuImageText(
|
||||
context.getString(R.string.library_bookmarks),
|
||||
bookmarksIcon,
|
||||
R.drawable.ic_bookmark_list,
|
||||
primaryTextColor
|
||||
) {
|
||||
onItemTapped.invoke(Item.Bookmarks)
|
||||
@ -251,15 +244,9 @@ class HomeMenu(
|
||||
val experiments = context.components.analytics.experiments
|
||||
val settings = context.components.settings
|
||||
|
||||
val bookmarksIcon = experiments.withExperiment(Experiments.BOOKMARK_ICON) {
|
||||
when (it) {
|
||||
ExperimentBranch.TREATMENT -> R.drawable.ic_bookmark_list
|
||||
else -> R.drawable.ic_bookmark_filled
|
||||
}
|
||||
}
|
||||
val bookmarksItem = BrowserMenuImageText(
|
||||
context.getString(R.string.library_bookmarks),
|
||||
bookmarksIcon,
|
||||
R.drawable.ic_bookmark_list,
|
||||
primaryTextColor
|
||||
) {
|
||||
onItemTapped.invoke(Item.Bookmarks)
|
||||
|
Loading…
Reference in New Issue
Block a user