Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
d4ffb625
Commit
d4ffb625
authored
Sep 27, 2019
by
mcarare
Browse files
For #4540 Sort tabs in a collection list with newest on top
parent
692aa52f
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/feature/tab-collections/src/main/java/mozilla/components/feature/tab/collections/adapter/TabCollectionAdapter.kt
View file @
d4ffb625
...
...
@@ -22,7 +22,7 @@ internal class TabCollectionAdapter(
override
val
tabs
:
List
<
Tab
>
by
lazy
{
entity
.
tabs
.
sortedBy
{
it
.
createdAt
}
.
sortedBy
Descending
{
it
.
createdAt
}
.
map
{
TabAdapter
(
it
)
}
}
...
...
docs/changelog.md
View file @
d4ffb625
...
...
@@ -19,6 +19,12 @@ permalink: /changelog/
*
Adds
`Resources.Theme.resolveAttribute(Int)`
to quickly get a resource ID from a theme.
*
Adds
`Context.getColorFromAttr`
to get a color int from an attribute.
*
**feature-customtabs**
*
Added
`CustomTabWindowFeature`
to handle windows inside custom tabs, PWAs, and TWAs.
*
**feature-tab-collections**
*
Behavior change: In a collection List
<TabEntity>
is now ordered descending by creation date (newest tab in a collection on top)
# 14.0.1
*
[
Commits
](
https://github.com/mozilla-mobile/android-components/compare/v14.0.0...v14.0.1
)
...
...
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