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
e7c7cefc
Commit
e7c7cefc
authored
Sep 28, 2020
by
Matthew Finkel
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 40028: Implement new home screen
parent
f61219e9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!26
Bug 40041 09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
+9
-6
9 additions, 6 deletions
app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
with
9 additions
and
6 deletions
app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
+
9
−
6
View file @
e7c7cefc
...
...
@@ -345,6 +345,7 @@ class HomeFragment : Fragment() {
}
// This function should be paired with showSessionControlView()
@SuppressWarnings
(
"ComplexMethod"
,
"NestedBlockDepth"
,
"LongMethod"
)
private
fun
adjustHomeFragmentView
(
mode
:
Mode
,
view
:
View
?)
{
view
?.
sessionControlRecyclerView
?.
apply
{
visibility
=
View
.
INVISIBLE
...
...
@@ -362,7 +363,8 @@ class HomeFragment : Fragment() {
// Reset this as SCROLL in case it was previously set as NO_SCROLL after bootstrap
children
.
forEach
{
(
it
.
layoutParams
as
AppBarLayout
.
LayoutParams
).
scrollFlags
=
AppBarLayout
.
LayoutParams
.
SCROLL_FLAG_SCROLL
(
it
.
layoutParams
as
AppBarLayout
.
LayoutParams
).
scrollFlags
=
AppBarLayout
.
LayoutParams
.
SCROLL_FLAG_SCROLL
}
}
view
?.
onion_pattern_image
?.
apply
{
...
...
@@ -419,7 +421,8 @@ class HomeFragment : Fragment() {
visibility
=
View
.
VISIBLE
children
.
forEach
{
(
it
.
layoutParams
as
AppBarLayout
.
LayoutParams
).
scrollFlags
=
if
(
onboarding
.
userHasBeenOnboarded
())
{
(
it
.
layoutParams
as
AppBarLayout
.
LayoutParams
).
scrollFlags
=
if
(
onboarding
.
userHasBeenOnboarded
())
{
AppBarLayout
.
LayoutParams
.
SCROLL_FLAG_NO_SCROLL
}
else
{
AppBarLayout
.
LayoutParams
.
SCROLL_FLAG_SCROLL
...
...
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