Skip to content

Commit

Permalink
Close mozilla-mobile#10601: Add lastAccess to Tab in TabsTray
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalmeida committed Jul 14, 2021
1 parent 03da548 commit 348a86f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import mozilla.components.concept.engine.mediasession.MediaSession
* @property thumbnail Current thumbnail of the tab (or null)
* @property playbackState Current media session playback state for the tab (or null)
* @property controller Current media session controller for the tab (or null)
* @property lastAccess The last time this tab was selected.
*/
data class Tab(
val id: String,
Expand All @@ -27,5 +28,6 @@ data class Tab(
val icon: Bitmap? = null,
val thumbnail: Bitmap? = null,
val playbackState: MediaSession.PlaybackState? = null,
val controller: MediaSession.Controller? = null
val controller: MediaSession.Controller? = null,
val lastAccess: Long = 0L
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ internal fun TabSessionState.toTab() = Tab(
content.icon,
content.thumbnail,
mediaSessionState?.playbackState,
mediaSessionState?.controller
mediaSessionState?.controller,
lastAccess
)
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ permalink: /changelog/
* 🌟️ New `AdsTelemetry` based on a web extension that identify whether there are ads in search results of particular providers for which a (Component.FEATURE_SEARCH to SERP_SHOWN_WITH_ADDS) Fact will be emitted and whether an ad was clicked for which a (Component.FEATURE_SEARCH to SERP_ADD_CLICKED) Fact will be emitted if the `AdsTelemetryMiddleware` is set for `BrowserStore`.
* 🌟️ New `InContentTelemetry` based on a web extension that identify follow-on and organic web searches for which a (Component.FEATURE_SEARCH to IN_CONTENT_SEARCH) Fact will be emitted.

* **feature-tabs**
* Adds `lastAccess` to the `Tab` data class that is used in `TabsTray`.

# 91.0.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v91.0.0...master)
* [Milestone](https://github.com/mozilla-mobile/android-components/milestone/138?closed=1)
Expand Down

0 comments on commit 348a86f

Please sign in to comment.