[fenix] Issue https://github.com/mozilla-mobile/fenix/issues/19002: Use a single BrowserTrayList for normal/private list
We now have a BrowserTrayList. - Renamed from `BaseBrowserTrayList`. - Removed the abstract `configuration` and used a `lateinit var` instead. - Removed `NormalBrowserTrayList` and `PrivateBrowserTrayList`.pull/600/head
parent
9ace0c8551
commit
cf9a9dd6dc
@ -1,19 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.tabstray.browser
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
|
||||
/**
|
||||
* A browser tabs list that displays normal tabs.
|
||||
*/
|
||||
class NormalBrowserTrayList @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : BaseBrowserTrayList(context, attrs, defStyleAttr) {
|
||||
override val configuration: Configuration = Configuration(BrowserTabType.NORMAL)
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.tabstray.browser
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
|
||||
/**
|
||||
* A browser tabs list that displays private tabs.
|
||||
*/
|
||||
class PrivateBrowserTrayList @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : BaseBrowserTrayList(context, attrs, defStyleAttr) {
|
||||
override val configuration: Configuration = Configuration(BrowserTabType.PRIVATE)
|
||||
}
|
Loading…
Reference in New Issue