Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
232a703b
Commit
232a703b
authored
5 years ago
by
Nicolas Pomepuy
Committed by
Geoffrey Métais
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Avoid drawing a header at position 0 if no header exists
parent
9b93cca3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!346
Avoid drawing a header at position 0 if no header exists
Pipeline
#11605
passed with stage
in 27 minutes and 52 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/view/RecyclerSectionItemDecoration.kt
+6
-4
6 additions, 4 deletions
...rg/videolan/vlc/gui/view/RecyclerSectionItemDecoration.kt
with
6 additions
and
4 deletions
vlc-android/src/org/videolan/vlc/gui/view/RecyclerSectionItemDecoration.kt
+
6
−
4
View file @
232a703b
...
...
@@ -45,11 +45,13 @@ class RecyclerSectionItemDecoration(private val headerOffset: Int, private val s
if
(
sticky
&&
previousChild
!=
null
)
{
val
position
=
parent
.
getChildAdapterPosition
(
previousChild
)
val
sectionPosition
=
provider
.
getPositionForSection
(
position
)
previousSectionPosition
=
sectionPosition
if
(
provider
.
getHeaderForPostion
(
sectionPosition
)
!=
null
)
{
previousSectionPosition
=
sectionPosition
val
title
=
provider
.
getSectionforPosition
(
sectionPosition
)
header
.
text
=
title
drawHeader
(
c
,
parent
.
getChildAt
(
0
),
headerView
)
val
title
=
provider
.
getSectionforPosition
(
sectionPosition
)
header
.
text
=
title
drawHeader
(
c
,
parent
.
getChildAt
(
0
),
headerView
)
}
}
val
drawnPositions
=
ArrayList
<
Int
>()
...
...
This diff is collapsed.
Click to expand it.
Nicolas Pomepuy
@Aza
mentioned in commit
dec68c0d
·
5 years ago
mentioned in commit
dec68c0d
mentioned in commit dec68c0d7fcd910a8d4da08ed9e5452765ae3fc2
Toggle commit list
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
register
or
sign in
to comment