mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/741 - Dont show the current session in the previous session list
This commit is contained in:
parent
48c455f4c0
commit
f3e8316105
@ -95,7 +95,9 @@ class HomeFragment : Fragment() {
|
|||||||
val bundles = requireComponents.core.sessionStorage.bundles(temporaryNumberOfSessions)
|
val bundles = requireComponents.core.sessionStorage.bundles(temporaryNumberOfSessions)
|
||||||
|
|
||||||
bundles.observe(this, Observer { sessionBundles ->
|
bundles.observe(this, Observer { sessionBundles ->
|
||||||
val archivedSessions = sessionBundles.mapNotNull { sessionBundle ->
|
val archivedSessions = sessionBundles
|
||||||
|
.filter { it.id != requireComponents.core.sessionStorage.current()?.id }
|
||||||
|
.mapNotNull { sessionBundle ->
|
||||||
sessionBundle.id?.let {
|
sessionBundle.id?.let {
|
||||||
ArchivedSession(it, sessionBundle, sessionBundle.lastSavedAt, sessionBundle.urls)
|
ArchivedSession(it, sessionBundle, sessionBundle.lastSavedAt, sessionBundle.urls)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user