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
fenix
Commits
0078ae15
Commit
0078ae15
authored
Aug 01, 2020
by
Matthew Finkel
Browse files
Bug 40015: Modify Home menu
parent
ac4efcfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
View file @
0078ae15
...
...
@@ -19,7 +19,7 @@ object FeatureFlags {
*
* Tracking issue: https://github.com/mozilla-mobile/fenix/issues/13892
*/
val
syncedTabsInTabsTray
=
Config
.
channel
.
isNightlyOrDebug
const
val
syncedTabsInTabsTray
=
false
/**
* Enables the new search experience
...
...
@@ -39,7 +39,7 @@ object FeatureFlags {
/**
* Enables downloads with external download managers.
*/
const
val
externalDownloadManager
=
tru
e
const
val
externalDownloadManager
=
fals
e
/**
* Enables swipe to delete in bookmarks
...
...
app/src/main/java/org/mozilla/fenix/home/HomeMenu.kt
View file @
0078ae15
...
...
@@ -104,21 +104,21 @@ class HomeMenu(
onItemTapped
.
invoke
(
Item
.
Bookmarks
)
}
val
historyItem
=
BrowserMenuImageText
(
context
.
getString
(
R
.
string
.
library_history
),
R
.
drawable
.
ic_history
,
primaryTextColor
)
{
onItemTapped
.
invoke
(
Item
.
History
)
}
val
addons
=
BrowserMenuImageText
(
context
.
getString
(
R
.
string
.
browser_menu_add_ons
),
R
.
drawable
.
ic_addons_extensions
,
primaryTextColor
)
{
onItemTapped
.
invoke
(
Item
.
AddonsManager
)
}
//
val historyItem = BrowserMenuImageText(
//
context.getString(R.string.library_history),
//
R.drawable.ic_history,
//
primaryTextColor
//
) {
//
onItemTapped.invoke(Item.History)
//
}
//
val addons = BrowserMenuImageText(
//
context.getString(R.string.browser_menu_add_ons),
//
R.drawable.ic_addons_extensions,
//
primaryTextColor
//
) {
//
onItemTapped.invoke(Item.AddonsManager)
//
}
val
settingsItem
=
BrowserMenuImageText
(
context
.
getString
(
R
.
string
.
browser_menu_settings
),
...
...
@@ -128,13 +128,13 @@ class HomeMenu(
onItemTapped
.
invoke
(
Item
.
Settings
)
}
val
syncedTabsItem
=
BrowserMenuImageText
(
context
.
getString
(
R
.
string
.
library_synced_tabs
),
R
.
drawable
.
ic_synced_tabs
,
primaryTextColor
)
{
onItemTapped
.
invoke
(
Item
.
SyncedTabs
)
}
//
val syncedTabsItem = BrowserMenuImageText(
//
context.getString(R.string.library_synced_tabs),
//
R.drawable.ic_synced_tabs,
//
primaryTextColor
//
) {
//
onItemTapped.invoke(Item.SyncedTabs)
//
}
val
helpItem
=
BrowserMenuImageText
(
context
.
getString
(
R
.
string
.
browser_menu_help
),
...
...
@@ -168,12 +168,12 @@ class HomeMenu(
if
(
shouldDeleteBrowsingDataOnQuit
)
quitItem
else
null
,
settingsItem
,
BrowserMenuDivider
(),
if
(
settings
.
syncedTabsInTabsTray
)
null
else
syncedTabsItem
,
//
if (settings.syncedTabsInTabsTray) null else syncedTabsItem,
bookmarksItem
,
historyItem
,
//
historyItem,
downloadsItem
,
BrowserMenuDivider
(),
addons
,
//
addons,
BrowserMenuDivider
(),
whatsNewItem
,
helpItem
,
...
...
Write
Preview
Markdown
is supported
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