Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
Notes
Commits
cb9164e2
Commit
cb9164e2
authored
Mar 15, 2021
by
Stefan Niedermann
Browse files
Fix #890 Grid view: no padding top on Recycler View
parent
40f8fe69
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/it/niedermann/owncloud/notes/main/items/grid/GridItemDecoration.java
View file @
cb9164e2
...
...
@@ -38,7 +38,8 @@ public class GridItemDecoration extends SectionItemDecoration {
final
int
spanIndex
=
lp
.
getSpanIndex
();
// First row gets some spacing at the top
if
(
position
<
spanCount
&&
position
<
adapter
.
getFirstPositionOfViewType
(
ItemAdapter
.
TYPE_SECTION
))
{
final
int
firstSectionPosition
=
adapter
.
getFirstPositionOfViewType
(
ItemAdapter
.
TYPE_SECTION
);
if
(
position
<
spanCount
&&
(
firstSectionPosition
<
0
||
position
<
firstSectionPosition
))
{
outRect
.
top
=
gutter
;
}
...
...
fastlane/metadata/android/en-US/changelogs/3002004.txt
0 → 100644
View file @
cb9164e2
- 🐞 Grid view: no padding top on first line in some cases (#890)
\ No newline at end of file
Write
Preview
Supports
Markdown
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