Skip to content
Snippets Groups Projects
Commit 474dd858 authored by cypherpunks1's avatar cypherpunks1 Committed by morgan
Browse files

fixup! [android] Modify UI/UX

Bug 43241: Improve hiding non-private tab features on Android
parent b4b207fa
Branches
Tags
1 merge request!1273Bug 43241: Improve hiding non-private tab features on Android
Pipeline #218600 passed
......@@ -218,13 +218,13 @@ open class DefaultToolbarMenu(
onItemTapped.invoke(ToolbarMenu.Item.NewTorCircuit)
}
//private val historyItem = BrowserMenuImageText(
// context.getString(R.string.library_history),
// R.drawable.ic_history,
// primaryTextColor()
//) {
// onItemTapped.invoke(ToolbarMenu.Item.History)
//}
private val historyItem = BrowserMenuImageText(
context.getString(R.string.library_history),
R.drawable.ic_history,
primaryTextColor(),
) {
onItemTapped.invoke(ToolbarMenu.Item.History)
}
private val downloadsItem = BrowserMenuImageText(
context.getString(R.string.library_downloads),
......@@ -419,7 +419,7 @@ open class DefaultToolbarMenu(
newCircuitItem,
BrowserMenuDivider(),
bookmarksItem,
//historyItem,
if (context.settings().shouldDisableNormalMode) null else historyItem,
downloadsItem,
passwordsItem,
extensionsItem,
......
......@@ -131,13 +131,13 @@ 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 historyItem = BrowserMenuImageText(
context.getString(R.string.library_history),
R.drawable.ic_history,
primaryTextColor,
) {
onItemTapped.invoke(Item.History)
}
val downloadsItem = BrowserMenuImageText(
context.getString(R.string.library_downloads),
......@@ -228,7 +228,7 @@ class HomeMenu(
val menuItems = listOfNotNull(
bookmarksItem,
//historyItem,
if (context.settings().shouldDisableNormalMode) null else historyItem,
downloadsItem,
passwordsItem,
// extensionsItem,
......
......@@ -251,9 +251,11 @@ class SettingsFragment : PreferenceFragmentCompat() {
getString(R.string.delete_browsing_data_quit_off)
}
if (!settings.shouldDisableNormalMode) {
val tabSettingsPreference =
requirePreference<Preference>(R.string.pref_key_tabs)
tabSettingsPreference.summary = context?.settings()?.getTabTimeoutString()
}
// val autofillPreference = requirePreference<Preference>(R.string.pref_key_credit_cards)
// autofillPreference.title = if (settings.addressFeature) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment