Commit 6ff7976b authored by Jeff Boek's avatar Jeff Boek
Browse files

For #7080 - Makes TabsAdapter open to subclassing

parent 9be66907
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ typealias ViewHolderProvider = (ViewGroup, BrowserTabsTray) -> TabViewHolder
 * @param viewHolderProvider a function that creates a `TabViewHolder`.
 */
@Suppress("TooManyFunctions")
class TabsAdapter(
open class TabsAdapter(
    delegate: Observable<TabsTray.Observer> = ObserverRegistry(),
    private val viewHolderProvider: ViewHolderProvider = { parent, tabsTray ->
        DefaultTabViewHolder(
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,9 @@ permalink: /changelog/
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/master/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/master/buildSrc/src/main/java/Config.kt)

* **feature-tabs**
  * Makes `TabsAdapter` open to subclassing.

* **feature-intent**
  * Select existing tab by url when trying to open a new tab in `TabIntentProcessor`