You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
Kotlin
39 lines
1.1 KiB
Kotlin
3 years ago
|
/* 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.viewholders
|
||
|
|
||
|
import android.view.View
|
||
|
import org.mozilla.fenix.R
|
||
|
import org.mozilla.fenix.tabstray.TabsTrayInteractor
|
||
3 years ago
|
import org.mozilla.fenix.tabstray.TabsTrayStore
|
||
3 years ago
|
import org.mozilla.fenix.tabstray.browser.BrowserTrayList.BrowserTabType.PRIVATE
|
||
3 years ago
|
|
||
|
/**
|
||
|
* View holder for the private tabs tray list.
|
||
|
*/
|
||
3 years ago
|
class PrivateBrowserPageViewHolder(
|
||
3 years ago
|
containerView: View,
|
||
3 years ago
|
store: TabsTrayStore,
|
||
3 years ago
|
interactor: TabsTrayInteractor,
|
||
|
currentTabIndex: Int
|
||
3 years ago
|
) : AbstractBrowserPageViewHolder(
|
||
3 years ago
|
containerView,
|
||
|
store,
|
||
|
interactor,
|
||
|
currentTabIndex
|
||
|
) {
|
||
3 years ago
|
|
||
|
init {
|
||
|
trayList.browserTabType = PRIVATE
|
||
|
}
|
||
|
|
||
3 years ago
|
override val emptyStringText: String
|
||
|
get() = itemView.resources.getString(R.string.no_private_tabs_description)
|
||
|
|
||
3 years ago
|
companion object {
|
||
|
const val LAYOUT_ID = R.layout.private_browser_tray_list
|
||
|
}
|
||
|
}
|