Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fenix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
The Tor Project
Applications
fenix
Commits
416bcf65
Unverified
Commit
416bcf65
authored
May 25, 2021
by
Matthew Finkel
Browse files
Options
Downloads
Patches
Plain Diff
squash! Modify UI/UX
Bug 40166: Hide "Normal" tab (again) and Sync tab in TabTray
parent
f48f4d47
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!122
Re-hide UI elements
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/org/mozilla/fenix/tabstray/TabLayoutMediator.kt
+11
-0
11 additions, 0 deletions
...main/java/org/mozilla/fenix/tabstray/TabLayoutMediator.kt
app/src/main/res/layout/component_tabstray2.xml
+0
-8
0 additions, 8 deletions
app/src/main/res/layout/component_tabstray2.xml
with
11 additions
and
8 deletions
app/src/main/java/org/mozilla/fenix/tabstray/TabLayoutMediator.kt
+
11
−
0
View file @
416bcf65
...
...
@@ -4,7 +4,9 @@
package
org.mozilla.fenix.tabstray
import
android.view.View
import
androidx.annotation.VisibleForTesting
import
androidx.core.view.isGone
import
com.google.android.material.tabs.TabLayout
import
mozilla.components.browser.state.store.BrowserStore
import
mozilla.components.support.base.feature.LifecycleAwareFeature
...
...
@@ -36,6 +38,15 @@ class TabLayoutMediator(
tabLayout
.
addOnTabSelectedListener
(
observer
)
selectActivePage
()
// Find normal mode tabs and set visibility
tabLayout
.
getTabAt
(
POSITION_NORMAL_TABS
)
?.
getCustomView
()
?.
apply
{
// The View we get from getCustomView() is only a sub-component
// of the actual tab (for example, the tab-count box). We need
// the "Custom View"'s parent for controlling the visibility
// of the entire tab.
(
getParent
()
as
?
View
)
?.
isGone
=
true
}
}
override
fun
stop
()
{
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/component_tabstray2.xml
+
0
−
8
View file @
416bcf65
...
...
@@ -101,14 +101,6 @@
android:contentDescription=
"@string/tabs_header_private_tabs_title"
android:icon=
"@drawable/ic_private_browsing"
/>
<com.google.android.material.tabs.TabItem
android:id=
"@+id/synced_tab_item"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:contentDescription=
"@string/tabs_header_synced_tabs_title"
android:foregroundTint=
"@color/photonWhite"
android:icon=
"@drawable/ic_synced_tabs"
/>
</com.google.android.material.tabs.TabLayout>
<ImageButton
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment